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


Groups > comp.lang.php > #17376

Re: Is this just a question of personal prefs - echo or not?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: Is this just a question of personal prefs - echo or not?
Date Tue, 25 Apr 2017 15:00:24 +0200
Organization solani.org
Lines 17
Message-ID <odnh92$7rs$1@solani.org> (permalink)
References <odnc5b$c2c$1@dont-email.me> <250420171310321177%timstreater@greenbee.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1493125218 8060 eJwFwQkBACAIA8BKomxAHb7+EbzDo7BMCSoWy+5ycYwsLE0vLSu6zoNO77EMoCKixnWvfyBsESg= (25 Apr 2017 13:00:18 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 25 Apr 2017 13:00:18 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1
X-NNTP-Posting-Host eJwFwYERACEIA7CVHmirjsPxdv8RTFgKzYIo0PRv4dStuKdlmAeZCUzR0b2rWwmiPV+sPQ8WvBDQ
Content-Language de-DE
Cancel-Lock sha1:DDxn2shsVQeIw85u+8c4uhEguXk=
X-User-ID eJwNycEBwCAMAsCVSirEjhOj7D+Cve/xFdQ5RA2abjF01PHYXb2xi5wh1CS/A6cj+f9afQBeJvYRXg==
In-Reply-To <250420171310321177%timstreater@greenbee.net>
Xref csiph.com comp.lang.php:17376

Show key headers only | View raw


On 25.04.2017 at 14:10, Tim Streater wrote:

> In article <odnc5b$c2c$1@dont-email.me>, TimW <tim@mysurname.me.uk>
> wrote:
> 
>> <body <?php if ($template_file != 'homepage.php')
>>    { echo "class =\"subpage\"";} ?> >
> 
> Use single quotes for PHP strings *unless* the string needs to contain
> the likes of \n. Otherwise PHP has to scan inside the string to look
> for them. […]

PHP has to recognize escape sequences in single-quoted strings also (\\
and \'), so *this* argument is moot.

-- 
Christoph M. Becker

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


Thread

Is this just a question of personal prefs - echo or not? TimW <tim@mysurname.me.uk> - 2017-04-25 12:36 +0100
  Re: Is this just a question of personal prefs - echo or not? Tim Streater <timstreater@greenbee.net> - 2017-04-25 13:10 +0100
    Re: Is this just a question of personal prefs - echo or not? "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-04-25 15:00 +0200
  Re: Is this just a question of personal prefs - echo or not? Jerry Stuckle <jstucklex@attglobal.net> - 2017-04-25 08:19 -0400
    Re: Is this just a question of personal prefs - echo or not? Richard Yates <richard@yatesguitar.com> - 2017-04-25 21:06 -0700
      Re: Is this just a question of personal prefs - echo or not? Jerry Stuckle <jstucklex@attglobal.net> - 2017-04-26 07:55 -0400
        Re: Is this just a question of personal prefs - echo or not? Richard Yates <richard@yatesguitar.com> - 2017-04-26 09:15 -0700
          Re: Is this just a question of personal prefs - echo or not? Jerry Stuckle <jstucklex@attglobal.net> - 2017-04-26 12:48 -0400
      Re: Is this just a question of personal prefs - echo or not? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-26 20:40 +0200
  Re: Is this just a question of personal prefs - echo or not? "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-04-25 15:03 +0200
    Re: Is this just a question of personal prefs - echo or not? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-26 03:14 +0200
  Re: Is this just a question of personal prefs - echo or not? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-04-25 14:21 +0100
    Re: Is this just a question of personal prefs - echo or not? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-26 03:10 +0200
    Re: Is this just a question of personal prefs - echo or not? TimW <tim@mysurname.me.uk> - 2017-04-26 19:31 +0100
      Re: Is this just a question of personal prefs - echo or not? Tim Streater <timstreater@greenbee.net> - 2017-04-26 20:21 +0100

csiph-web