Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3243 > unrolled thread
| Started by | user@domain.invalid |
|---|---|
| First post | 2011-09-30 18:13 +0200 |
| Last post | 2011-09-30 19:10 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.php
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
| From | user@domain.invalid |
|---|---|
| Date | 2011-09-30 18:13 +0200 |
| Subject | Simple array code seems to break .. |
| Message-ID | <j64pqq$1ms$1@cache.uni-koblenz.de> |
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..
[toc] | [next] | [standalone]
| From | "Peter H. Coffin" <hellsop@ninehells.com> |
|---|---|
| Date | 2011-09-30 11:35 -0500 |
| Message-ID | <slrnj8brvf.hbg.hellsop@nibelheim.ninehells.com> |
| In reply to | #3243 |
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.
--
A way of life that is odd or even erratic but interferes with no rights
or interests of others is not to be condemned because it is different.
-- Chief Justice Warren E. Burger
[toc] | [prev] | [next] | [standalone]
| From | Jessica Streicher <thio@uni-koblenz.de> |
|---|---|
| Date | 2011-09-30 19:10 +0200 |
| Message-ID | <j64t5v$55e$1@cache.uni-koblenz.de> |
| In reply to | #3244 |
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.
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web