declare empty array in php

45

//To clear array you are able to simply re-instantiate it
$foo = array();

//To clear $foo from the symbol table use
unset($foo);
$my_array = array_fill(0, $size_of_the_array, $some_data);

Comments

Submit
0 Comments