Re: New globals for PUT and DELETE

From: Date: Tue, 14 Oct 2014 14:21:32 +0000
Subject: Re: New globals for PUT and DELETE
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-78012@lists.php.net to get a copy of this message
On Oct 14, 2014, at 9:08 AM, Mike Dugan <mike@mjdugan.com> wrote: > On October 14, 2014 at 10:04:00 AM, Andrea Faulds (ajf@ajf.me) wrote: >> >> >> So $_QUERY and $_FORM, then. That sounds about right. >> > > Did I just name a global variable? W00t! > > Anyhow, yeah neither one is technically 100% correct, but like Andrea said, the majority of > usage will be from forms and query strings with parameters. At any rate, it’s makes more sense > semantically in the context of what the var actually contains than $_GET and $_POST ever will. > +1 I’m cool with $_QUERY and $_FORM. They make much more sense and don’t try to use HTTP verbs, which can confuse the content and semantics of the data they contain. Plus, they would just alias $_GET and $_POST, respectively, right? -Ben

« previous php.internals (#78012) next »