HOW CAN WE KNOW THE COUNT/NUMBER OF ELEMENTS OF AN ARRAY?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
PHP 
PHP
 1723  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    How can we know the count/number of elements of an array?

    We will accomplishe this task in two ways.

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

    b) count($numArray)

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!