Answers for "php new array with size"

PHP
1

php array size

echo count($my_array);
echo sizeof($my_array);    // alias
Posted by: Guest on April-21-2021
0

PHP create array of specified size

$my_array = array_fill(0, $size_of_the_array, $some_data);
Posted by: Guest on December-22-2021

Browse Popular Code Answers by Language