Both count() and sizeof() returns number of elements in an array.
sizeof() is an alias of count().
<?php
$arrray1 = array("ele1","ele2","ele3");
echo "using sizeof function ".sizeof($array1);
echo "using count function ".count($array1);
?>
Here you can find small coding snippets in case you got stuck in the middle of the programming
Both count() and sizeof() returns number of elements in an array.
sizeof() is an alias of count().
<?php
$arrray1 = array("ele1","ele2","ele3");
echo "using sizeof function ".sizeof($array1);
echo "using count function ".count($array1);
?>
Programmer View more posts