What is the different between count() and sizeof() in php?
Both are used to count elements in a array.sizeof() function is an alias of count() function used in PHP. count() function is faster and butter than sizeof().
BY Best Interview Question ON 25 Oct 2019
$array = array('1','2','3','4');
$size = count($array);
//OUTPUT : 4