Answers for "php array initialize empty"

PHP
2

php empty array

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

//To clear $foo from the symbol table use
unset($foo);
Posted by: Guest on July-15-2020
1

declare empty array in php

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

Code answers related to "php array initialize empty"

Browse Popular Code Answers by Language