Código PHP:
function decode_vars(){
global $HTTP_POST_VARS;
global $HTTP_GET_VARS;
if (getenv("REQUEST_METHOD") == "GET"){
$a = $HTTP_GET_VARS;
} else {
$a = $HTTP_POST_VARS;
}
return $a;
}
| ||||
Re: funcion de php4 a php5 Podrias hacerlo así: Código PHP: Saludos. |