: PHP User Group
Subject: [PHP] What variable are being sent to my script?
Hello,
I there a way for me to find out what variables are being sent to script?
Example:
http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
that above would be $var1 and $var2
Thanks
Brandon
--
PHP Gen
"Brandon Orther" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I there a way for me to find out what variables are being sent to script?
> Example:
>
> http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
>
> that above would be $var1 and
Even better, there is a whole PHP function just for that.
I use the following code in scripts where I need to debug the available
variables and their values:
// Print all available variables.
$arr = get_defined_vars();
print_r($arr);
I love print_r ;)
--
Plutarck
Should be working on someth
Brandon Orther wrote:
> I there a way for me to find out what variables are being sent to script?
> Example:
> http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
>
> that above would be $var1 and $var2
Stick at the end of your script, and go through it so you
can see all the nifty var
Hello,
I there a way for me to find out what variables are being sent to script?
Example:
http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
that above would be $var1 and $var2
Thanks
Brandon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
5 matches
Mail list logo