Hi!
Here is my problem:
<?php
$arr["a"][0]["x1"]="222";
$arr["a"][0]["x2"]="22A";
function clear(){
global $arr;
unset ($GLOBALS[???])
}
so, I wan't to unset elements of multidimensional array in
a function, and since in documentation says that unless
$GLOBALS is used, array won't be unset in the "main part of the script".
So, how to solve this?
I need multidim. arrays, and they have to be in a funciton, since it is a recursion.
Here is my problem:
<?php
$arr["a"][0]["x1"]="222";
$arr["a"][0]["x2"]="22A";
function clear(){
global $arr;
unset ($GLOBALS[???])
}
so, I wan't to unset elements of multidimensional array in
a function, and since in documentation says that unless
$GLOBALS is used, array won't be unset in the "main part of the script".
So, how to solve this?
I need multidim. arrays, and they have to be in a funciton, since it is a recursion.