NYCPHP Meetup

NYPHP.org

[nycphp-talk] Global settings in PHP

Malcolm, Gary gmalcolm at professionalcredit.com
Wed May 7 18:57:32 EDT 2003


php doesn't parse for vars inside single quotes... but the speed gain is
SUPER minimal unless your parsing a big string...

> -----Original Message-----
> From: Christopher R. Merlo [mailto:cmerlo at turing.matcmp.ncc.edu]
> Sent: Wednesday, 07 May, 2003 3:56 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Global settings in PHP
> 
> 
> On 2003-05-07 17:29 -0400, Hans Zaunere <hans at nyphp.org> wrote:
> 
> > > This elevates the need for $_POST["my_posted_data"] when 
> retrieving posted
> > > data.
> > 
> > Absolutely, and the superglobals (ie $_POST, $_GET) make it 
> a breeze.  Just a
> > tip, though, unless there's a dollar sign (variable) inside 
> the braces, use
> > single quotes.  $_POST['my_posted_data'] is much faster.
> 
> Never heard that before.  Why is that?
> -c
> 
> -- 
> cmerlo at turing.matcmp.ncc.edu        
> http://turing.matcmp.ncc.edu/~cmerlo
> 
> Some men are discovered; others are found out.
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030507/e1b9d047/attachment.html>


More information about the talk mailing list