PHP Coding Tips

Friday, August 17, 2012

How to get size of an array in PHP (count elements) ?

To count elements and grab size of an array in php just use a count function:$elementsNumber = count( $array ); This will return a number of elements that are set in array

1 comment: