sizeof() function is an alias of the count() function.
Both functions are used to count the number of elements in an array.
<?php
$array = array("apple", "banana", "cherry");
$count = sizeof($array);
echo "Number of elements: " . $count;
?>
Output:
Number of elements: 3