Home > DeveloperSection > Interviews > How can we know the count/number of elements of an array?

Posted on    June-13-2011 5:50 AM

 1 Answer(s)
  1577  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    June-13-2011 12:00 AM

We will accomplishe this task in two ways.

a) sizeof($numArray) This function is an alias of count.

b) count($numArray)

Don't want to miss updates? Please click the below button!

Follow MindStick