Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12297
| Message-ID | <1672806.7XuLpXusn3@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-12-16 22:02 +0100 |
| 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> |
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