Re: PHP calling PHP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



"Gyozo Papp" <pgerzson@xxxxxxxxxxxx> wrote:
> Seriously, If you use either $HTTP_POST_VARS or $HTTP_GET_VARS (respect to
the action)
> 1: you can access the variable with its original name
($HTTP_POST_VARS['foo*bar'], in my example),
> 2: but you can't refer to it as a common global variable like : $foo*bar.
> 3: much more interesting with variable variables, try and see. I don't say
annything ... :)

Also, variables cannot have numbers in their name, but a variable variables
workaround allows them to be used.  For example:

You cannot set $1 = "something".

But you can do:

$a = 1;
$$a = "something";
echo $$a; // prints "something".

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster





[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux