Question: PHP Array Length
I am fresher in PHP? So, please suggest the parameters for PHP Array Lengh and how to declare the array length in PHP program.
In PHP Array Length we will using the sizeof() and count() functions. The function array length in PHP is used to get the actual size of array before doing any modification to it.
Example of array sizeof() in PHP
<?PHP $weekdays = array(Sunday, Monday, Tuesday, Thrusday, Friday); echo "Number of weekdays = ".sizeof($weekdays); ?>