Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12827
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Array key names |
| Date | 2014-02-14 05:43 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <ldl6p3$bna$1@dont-email.me> (permalink) |
| References | <1864yi9o87hzd$.13eojppqkwixm$.dlg@40tude.net> <bm675oFtgk9U1@mid.uni-berlin.de> <1f5dmj1ajrueb.q6jlzpybxgfj.dlg@40tude.net> |
On 2/14/14, 3:43 AM, richard wrote:
> On Fri, 14 Feb 2014 10:49:44 +0100, M. Strobel wrote:
>
>> Am 14.02.2014 06:40, schrieb John Smith:
>>> Just one simple question. Are spaces allowed in key names?
>>> Such as $name=array("John Smith" +> "somethig").
>>>
>>
>>
>> I am testing it for you.
>>
>> str@suse131:~> php -a
>> Interactive mode enabled
>>
>> php > $a['is it really me?'] = 99.999;
>> php > print_r($a);
>> Array
>> (
>> [is it really me?] => 99.999
>> )
>> php >
>>
>> /Str.
>
> You Probably just typed it all in without any online testing.
> The only true way of testing what is allowed and what isn't, is to do so on
> the server you're going to be using.
> e.g. your local machine you are using to test on at home has php 5.5.
> while your host uses 5.3.
> What worked for you suddenly fails.
>
richard I would be very careful telling others who have obviously more
experience then you in PHP on how to and not to do coding/testing in
PHP. You may not really know enough about what you think you know. I
learned that some time ago.
For starters, Strobel is using what is called command prompt. Great for
testing a snippet of code without loading up the editor and such.
Secondly the OP is asking a simple question, which he could of actually
tested on his own, and Strobel is wise enough to understand it was not
affected by a minor version release.
Scotty
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Array key names John Smith <JohnSmith@example.com> - 2014-02-14 00:40 -0500
Re: Array key names "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2014-02-14 10:49 +0100
Re: Array key names richard <noreply@example.com> - 2014-02-14 06:43 -0500
Re: Array key names Scott Johnson <noonehome@chalupasworld.com> - 2014-02-14 05:43 -0800
Re: Array key names "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2014-02-14 18:28 +0100
Re: Array key names Denis McMahon <denismfmcmahon@gmail.com> - 2014-02-14 19:05 +0000
Re: Array key names Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-14 15:09 +0100
csiph-web