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

Example

$array = array('1','2','3','4');
$size = count($array);

//OUTPUT : 4