Posted by Dotan Cohen on 11/05/05 13:51
On 11/5/05, Paul Waring <paul@xk7.net> wrote:
> On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote:
> > How can I shorten it to something like this:
> > <?php
> > print $number." ".$number+2."\n";
> > ?>
>
> Try:
>
> <?php
> print $number . ' ' . ($number + 2) . "\n";
> ?>
>
> I think putting the $number + 2 in brackets will cause PHP to evaluate
> that part of the expression before printing it.
>
> Paul
>
> --
> Rogue Tory
> http://www.roguetory.org.uk
>
Thanks, that did it!
Dotan
http://song-lirics.com/sl/artist/321/madonna-lirics.php
[Back to original message]
|