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


Groups > comp.lang.php > #3245

Re: Simple array code seems to break ..

From Jessica Streicher <thio@uni-koblenz.de>
Newsgroups comp.lang.php
Subject Re: Simple array code seems to break ..
Date 2011-09-30 19:10 +0200
Organization IWM
Message-ID <j64t5v$55e$1@cache.uni-koblenz.de> (permalink)
References <j64pqq$1ms$1@cache.uni-koblenz.de> <slrnj8brvf.hbg.hellsop@nibelheim.ninehells.com>

Show all headers | View raw


Thanks.. removing the space worked.
I swear i tried that before... and it did not..
*grumbles*

Such a stupid thing..

On 30.09.2011 18:35, Peter H. Coffin wrote:
> On Fri, 30 Sep 2011 18:13:19 +0200, user@domain.invalid wrote:
>> Hi, i'm just starting with php, and i have a problem that i just cant
>> solve oO
>>
>> I a web page i have a scipt
>>
>> <? php
>> $x = array("a"=>"b","b"=>1);
>> ?>
>>
>> which produces an output of
>> "b","b"=>1); ?>
>>
>> So, it pretty much stops counting as a script at the =>
>>
>> And i just don't get why..
>
> Turn off short tags, remove the space between<? and php, try it again.
>

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


Thread

Simple array code seems to break .. user@domain.invalid - 2011-09-30 18:13 +0200
  Re: Simple array code seems to break .. "Peter H. Coffin" <hellsop@ninehells.com> - 2011-09-30 11:35 -0500
    Re: Simple array code seems to break .. Jessica Streicher <thio@uni-koblenz.de> - 2011-09-30 19:10 +0200

csiph-web