> He's asking 'why' not 'how'...
>
Right. My suspicion is that this is from the old days, when men were men and GET
variables were not in $_GET - but the inconsistency kinda bugs me. There has to
be someone who remembers why they wrote it that way...?
Anyone? Rasmus? :)
--ck
--
PHP Internals
On Mon, 8 Aug 2005, Pawel Bernat wrote:
> On Mon, Aug 08, 2005 at 03:37:53PM +0200, Christopher Kunz wrote:
> > Hi,
> >
> > I have a general question in regard to the PHP variable normalizing.
> > Obviously,
> > leading whitespace in a variable is stripped, but why is trailing
> > whitespace
On Mon, Aug 08, 2005 at 03:37:53PM +0200, Christopher Kunz wrote:
> Hi,
>
> I have a general question in regard to the PHP variable normalizing.
> Obviously,
> leading whitespace in a variable is stripped, but why is trailing whitespace
> converted to underscores?
See http://php.net/manual/en/f
Hi,
I have a general question in regard to the PHP variable normalizing. Obviously,
leading whitespace in a variable is stripped, but why is trailing whitespace
converted to underscores?
Example:
/?foo=bar&+fooo=blah&foo+=ljalskdf
results in:
array(3) {
["foo"]=>
string(3) "bar"