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