Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12831
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
| Newsgroups | comp.lang.php |
| Subject | Re: Array key names |
| Date | Fri, 14 Feb 2014 18:28:01 +0100 |
| Lines | 41 |
| Message-ID | <bm7211F4njaU1@mid.uni-berlin.de> (permalink) |
| References | <1864yi9o87hzd$.13eojppqkwixm$.dlg@40tude.net> <bm675oFtgk9U1@mid.uni-berlin.de> <1f5dmj1ajrueb.q6jlzpybxgfj.dlg@40tude.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de 0+jcPvusJAhL2XEKxrAstAeW6bM5uyPISop1puuglMZCl8kgw= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| In-Reply-To | <1f5dmj1ajrueb.q6jlzpybxgfj.dlg@40tude.net> |
| Xref | csiph.com comp.lang.php:12831 |
Show key headers only | View raw
Am 14.02.2014 12:43, schrieb richard:
> 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.
>
Yes, I just typed it in :-) something I invite everybody to do.
And - the OP did not ask for a specific version.
And - this will not fail, it is too basic.
... (skip the rest about richard@noreplay as sysadmin)
/Str.
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