Array size in PHP
Posted by Raj
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
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
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
array php size,
array size in php,
array size php,
php array size,
php size array,
php size of an array,
php size of array,
size array php,
size of an array php,
size of array in php
.You can leave a response, or trackback from your own site.