How Can We Know The Count/number Of Elements Of An Array

How Can We Know The Count/number Of Elements Of An Array


  • 13 Jan, 2012

    2 ways:a) sizeof($array) - This function is an alias of count()b) count($urarray) - This function returns the number of elements in an array.Interestingly if you just pass a simple var instead of an array, count() will return 1.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.