PHP Find out the number of elements in an array – PHP April 14, 2011 Pramod T P Leave a comment <?php $testArray = array('Test1', 'Test2', 'Test1'); echo( count($testArray)); // 3 echo( sizeof($testArray)); // 3 ?>