php arrya size code example Example: php array size echo count($my_array); echo sizeof($my_array); // alias