how to declare a variable to a empty array code example
Example 1: javascript declare empty array
// Variable array for a wider scope:
var arrayName = [];
// Local scope variable array:
let arrayName = [];
Example 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);