Jump to content
Sign in to follow this  
apsync

sizeof

Recommended Posts

apsync

is there a function like sizeof, i want to do Random(0,sizeof($anarray),0)

Share this post


Link to post
Share on other sites
herewasplato

is there a function like sizeof, i want to do Random(0,sizeof($anarray),0)

<{POST_SNAPBACK}>

If you use condoman's suggestion of:

$part1=StringSplit("first,second,third",",")

from your last post then $part1[0] contains the number of strings returned

read more about this in the manual under StringSplit

later


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×