PHP array length size count

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

Syntax
count(array)

Example:array size in php

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

Output:
2