Re: function echo ' '

From: Date: Tue, 25 Jun 2002 22:27:50 +0000
Subject: Re: function echo ' '
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-103848@lists.php.net to get a copy of this message
Martin Johansson wrote:
But the problem is that Im doin it inside a while loop. So I need to echo it. Don't forget that you can switch in/out of PHP as needed. I've seen so much sloppy-looking PHP code where there are literally hundreds of lines of echo statements, where the majority of the content being output is static.
For example: <? while ($blah) { ?> I'm outputting stuff to the screen. Blah blah blah. More output... Still going... <? } ?>
"Niklas lampén" <niklas.lists@publico.fi> <a href="<?=$address?>"> I'm not sure about other people, but I can't stand this syntax. I can see no advantage to using this over:
<a href="<? echo $address; ?>"> Chris

« previous php.general (#103848) next »