Simple Array Question
Posted: Fri Sep 01, 2006 10:45 am
I'm still a bit of a newbster in programming and I can't find a function that will return the amount
of elements in an array. Like if the array is...
...I would want this function to return "5".
Does anyone know of a function like this? If not, I could use a little help in learning how to write
one that would do this or manipulating other functions to get that value. I tried calling array_length()
and was pretty surprised to find that it didn't exist. Anyway, thanks in advance for any help.
of elements in an array. Like if the array is...
Code: Select all
array("shake", "my", "hand", "good", "sir");Does anyone know of a function like this? If not, I could use a little help in learning how to write
one that would do this or manipulating other functions to get that value. I tried calling array_length()
and was pretty surprised to find that it didn't exist. Anyway, thanks in advance for any help.