RE: [PHP-ES] Saber que variables recivo
| From: | Sebastian Davicco | Date: | Wed, 30 Oct 2002 18:56:22 +0000 |
| Subject: | RE: [PHP-ES] Saber que variables recivo | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-28645@lists.php.net to get a copy of this message | ||
function print_array($array) {
if(gettype($array)=="array") {
echo "<ul>";
while (list($index, $subarray) = each($array) ) {
echo "<li>$index <code>=></code> ";
print_array($subarray);
echo "</li>";
}
echo "</ul>";
} else echo $array;
}
print_array($HTTP_POST_VARS);
Sebastian Davicco
Web Development
NEONET GROUP S.A.
http://www.neonetcr.com/
-----Original Message-----
From: Alex Marin [mailto:alexism@webbox.cl]
Sent: Wednesday, October 30, 2002 8:57 AM
To: lista@phpes.com
Subject: Re: [PHP-ES] Saber que variables recivo
sorry pero no entendi, osea no se como aplicarlo ;'(
puse $array=$HTTP_POST_VARS;, no paso nada :(
----- Original Message -----
From: "Pablo E. Siciliano" <psiciliano@puentenet.com>
To: <lista@phpes.com>
Sent: Wednesday, October 30, 2002 11:43 AM
Subject: Re: [PHP-ES] Saber que variables recivo
> Se puede configurar php para que estas variables se macheen en varios
arrays
> (Por ejemplo, $HTTP_POST_VARS), y lo que se puede hacer es aplicarle
esta
> función:
>
> function print_array($array) {
> if(gettype($array)=="array") {
> echo "<ul>";
> while (list($index, $subarray) = each($array) ) {
> echo "<li>$index <code>=></code> ";
> print_array($subarray);
> echo "</li>";
> }
> echo "</ul>";
> } else echo $array;
> }
>
>
>
> age -----
> From: "Alex Marin" <alexism@webbox.cl>
> To: <lista@phpes.com>
> Sent: Wednesday, October 30, 2002 11:10 AM
> Subject: [PHP-ES] Saber que variables recivo
>
>
> Hola a todos, recurro austes denuevo para consultar, como puedo hacer
para
> mostrar todas las variables que recibe un php, sin saber cuales son
estas???
>
>
> ded antemano muchas gracias :D
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
>
---------------------------------------------------------------------
Archivo On-line: http://www.phpes.com/
via news: news://news.phpes.com/
Manual PHP en español: http://www.php.net/manual/es/
Para dar de baja la suscripción, mande un mensaje a:
lista-unsubscribe@phpes.com