Ok im using this code to debug and get all the globals that are posted on my site
$ArrayList = array("_POST", "_GET", "_COOKIE", "_ENV", "_FILES", "_SESSION", "_SERVER");
foreach($ArrayList as $gblArray) {
$keys = array_keys($$gblArray);
$DebugInfo .= "\n Key: $gblArray - \n";
foreach($keys as $key){
@$$key = trim(${$gblArray}[$key]);
if (is_array($$key)){
for($i=0; sizeof($$key); $i++){
$DebugInfo .= "$key = ". @$$key[$i] . " \n";
}
} else {
$DebugInfo .= "$key = ". @$$key . " \n";
}
}
}
heres the delema. what i need is if $$key is an array to spit it out instead of saying its an array
can anyone help?
the way I am posting is
<select name="block[]" multiple>
<option value = 1> test1</option>
<option value = 2> test2</option>
<select>
or something like that