Php sizeof() Function

The sizeof() function is used to count and returns the number of elements in the array.which is like a count() function.

Demo :



Type Array Value :
 
  add one more  
 
Array sizeof is : 0
 

Example :

Type Array Value: turtle

Type Array Value: iguana

Type Array Value: wolf

Type Array Value: anteater

Type Array Value: donkey

If you need to take the array size from a list following code useful to you.


<?php
  $animals = array("turtle", "iguana", "wolf", "anteater", "donkey");
  echo sizeof($animals);
?>

In the sizeof() functions have used one parameters that name is array array.

Free Download Script :

If you need sizeof() function demo code download from following link.

Download




Content