|
Posted by Shelly on 09/28/07 18:31
Also, NEVER, NEVER, NEVER leave out the semi-colon to end the sentence as
you did below in your next to last code line.
Shelly
<kurt.krueckeberg@gmail.com> wrote in message
news:1191002991.546795.171650@57g2000hsv.googlegroups.com...
>I am trying to learn php. Php statements of the form <?=$var?> do not
> work? If I use <? echo $var; ?> instead, it works. I am using php5.
> Here is a saample
> <?php
> $var = 5;
> ?>
> var = 10;<br />
> The variable $var has a value of:
> <?=$var?><br />
> <!-- prior line gives no output -->
>
> thanks,
> Kurt
>
Navigation:
[Reply to this message]
|