Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12297
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.internetdienste.de!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <1672806.7XuLpXusn3@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <php@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Mon, 16 Dec 2013 22:02:12 +0100 |
| User-Agent | KNode/4.11.3 |
| Content-Transfer-Encoding | 8Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: How to code () inside quotes |
| Newsgroups | comp.lang.php |
| References | <1lebkr5hftyc8.16rx2wqqe9ifx$.dlg@40tude.net> <52AED2DE.1010501@arnowelzel.de> <l8n9v9$f8n$1@dont-email.me> |
| MIME-Version | 1.0 |
| Lines | 30 |
| NNTP-Posting-Date | 16 Dec 2013 22:02:15 CET |
| NNTP-Posting-Host | f92d8c8f.newsspool4.arcor-online.net |
| X-Trace | DXC=olSNjS9ibJbFXUDVUnEXQm4IUK<Cl32<a4Fo<]lROoRa8kF<OcfhCOklY=Qggn==WoDZm8W4\YJNlYUVHKH;GI^g4n6RHj^Gc``CO3>@TjWmho |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.php:12297 |
Show key headers only | View raw
Denis McMahon wrote:
> On Mon, 16 Dec 2013 11:15:58 +0100, Arno Welzel wrote:
>> Am 15.12.2013 23:20, schrieb richard:
>>> array("this (are) only a test")
>>>
>>> what's the legal way of coding the (are)??
>>
>> array("this (are) only a test")
>>
>> Or what exactly is not "legal" there?
>
> It should be:
>
> $arr = array("This is only a test.");
>
> or for a sub-array:
>
> $arr = array( array( "This is only a test." ) );
A wild guess, as the original code is syntactically correct, assuming it is
followed by “;” (after optional whitespace). It is then parsed as follows:
array ( "this (are) only a test" ) ;
T_ARRAY ( T_CONSTANT_ENCAPSED_STRING ) ;
PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to code () inside quotes richard <noreply@example.com> - 2013-12-15 17:20 -0500
Re: How to code () inside quotes Tim Streater <timstreater@greenbee.net> - 2013-12-15 23:10 +0000
Re: How to code () inside quotes Richard Damon <Richard@Damon-Family.org> - 2013-12-15 18:42 -0500
Re: How to code () inside quotes Scott Johnson <noonehome@chalupasworld.com> - 2013-12-15 16:57 -0800
Re: How to code () inside quotes The Natural Philosopher <tnp@invalid.invalid> - 2013-12-16 02:38 +0000
Re: How to code () inside quotes richard <noreply@example.com> - 2013-12-16 00:08 -0500
Re: How to code () inside quotes Tim Streater <timstreater@greenbee.net> - 2013-12-16 09:31 +0000
Re: How to code () inside quotes Arno Welzel <usenet@arnowelzel.de> - 2013-12-16 11:15 +0100
Re: How to code () inside quotes Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-16 16:32 +0000
Re: How to code () inside quotes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-16 22:02 +0100
Re: How to code () inside quotes Norman Peelman <npeelman@cfl.rr.com> - 2013-12-16 07:24 -0500
csiph-web