Saturday, May 20, 2017

Count

<?php
$color = array("blue", "red", "green", array("light gray", "dark gray"), "yellow" => array("lemon", "normal"));
echo count($color) . "<br/>";
echo count($color, 1);
?>
Output:
5
9

No comments:

Post a Comment

here docs

$x = <<<THE_END PHP stands for "PHP: Hypertext Preprocessor". The acronym "PHP" is therefore, usually referre...