Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14453

Re: $-sign in form input names?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: $-sign in form input names?
Date Tue, 04 Nov 2014 06:55:16 +0100
Lines 19
Message-ID <cbr824Fmk87U1@mid.individual.net> (permalink)
References <996e3930-f711-4338-9093-07115af47380@googlegroups.com> <m398il$m28$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net EphabcjKqB1awSC+vynqwAhODrNPZbxZwC+2AOa6w7VeNVVk45
Cancel-Lock sha1:GA7aE+URqB8Tt50raFOTtQkGMSw=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
In-Reply-To <m398il$m28$1@dont-email.me>
Xref csiph.com comp.lang.php:14453

Show key headers only | View raw


On 04/11/14 02:02, Denis McMahon wrote:

> See http://php.net/manual/en/language.types.string.php
>
> esp:
>
> "Note: Unlike the double-quoted and heredoc syntaxes, variables and
> escape sequences for special characters will not be expanded when they
> occur in single quoted strings."

I would add that you should always use single quotes by default and only 
use double quotes when you need to to use variables/methods inside a string.

As the double quotes will make the string to be parsed every time, which 
causes some slight overhead.

-- 

  //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

$-sign in form input names? sonnichjensen@gmail.com - 2014-11-03 07:23 -0800
  Re: $-sign in form input names? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-11-03 15:54 +0000
  Re: $-sign in form input names? Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-04 01:02 +0000
    Re: $-sign in form input names? "J.O. Aho" <user@example.net> - 2014-11-04 06:55 +0100
      Re: $-sign in form input names? "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-04 10:17 +0100
        Re: $-sign in form input names? Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-04 09:23 -0500
          Re: $-sign in form input names? gordonb.2w35u@burditt.org (Gordon Burditt) - 2014-11-04 09:35 -0600
            Re: $-sign in form input names? Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-04 10:37 -0500
          Re: $-sign in form input names? "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-04 21:42 +0100
            Re: $-sign in form input names? Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-04 17:01 -0500
              Re: $-sign in form input names? "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-04 23:46 +0100
                Re: $-sign in form input names? Jerry Stuckle <jstucklex@attglobal.net> - 2014-11-04 21:19 -0500
        Re: $-sign in form input names? Matthew Carter <m@ahungry.com> - 2014-11-04 09:31 -0500

csiph-web