Mega Code Archive

 
Categories / Php / Class
 

Finding the size of an array

<? $dinner = array('A','B','C'); $dishes = count($dinner); print "There are $dishes things for dinner."; ?>