Answers for "declare empty array in php"

PHP
1

declare empty array in php

$emptyArray = []; 
$emptyArray = array();
$emptyArray = (array) null;
Posted by: Guest on May-25-2020
0

php create empty array with size

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

Browse Popular Code Answers by Language