Array size in PHP

In this Article, I will explain How to get the size of array in php using `sizeof` php function.In PHP sizeof() is just a alias of count() function.
sizeof :Get the actual length of array in PHP.

Syntax
sizeof(array)

Example:
<?php
$arr1 = array('A=>0','B=>1');
echo sizeof($arr1); 
?>


Output:
2