Hi,
I need to access array values at varying dimensions.
What I want to do is something like this:
$full_index = ["op"]["view"];
print ${"HTTP_GET_VARS" . $full_index};
but that doesnt work :(
A messy solution would be:
function return_array_value($index1, $index2)
{
if ($index2) {
Thank for the extremely quick response,
So setting error_reproting to E_ALL, and making sure you take heed of any
"Undefined variable" notices, will allow you to use register_globals in
safety?
Regards
Dale Robinson
- Original Message -
From: "Rasmus Lerdorf" &l
Everyone seems to recommend turning off register_globals, but accessing them
through $HTTP_POST_VARS["var_name"], gets tedious.
I haven't found a better solution (not to say there isn't one) than this
small snippet.
The idea is to turn off "register_globals", as I believe is heavily
recommended
3 matches
Mail list logo