From: Steve Werby <steve-lists@befriend.com>
To: Gyozo Papp <pgerzson@freestart.hu>
To: Christian Marschalek <cm@chello.at>
Cc: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: PHP calling PHP?
Date: Tue, 8 May 2001 00:04:26 -0400
Message-ID: <034f01c0d775$4ceb04f0$6501a8c0@workstation7> (raw)
References: <000001c0d579$c1874240$0200a8c0@server>
<039e01c0d57d$b8f70a80$4647c5d5@jaguar>
"Gyozo Papp" <pgerzson@freestart.hu> 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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: steve-lists@befriend.com, pgerzson@freestart.hu, cm@chello.at
Subject: Re: PHP calling PHP?
In-Reply-To: <034f01c0d775$4ceb04f0$6501a8c0@workstation7>
References: <000001c0d579$c1874240$0200a8c0@server> <039e01c0d57d$b8f70a80$4647c5d5@jaguar> <034f01c0d775$4ceb04f0$6501a8c0@workstation7>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox