Re: function echo ' '

From: Date: Tue, 25 Jun 2002 11:27:25 +0000
Subject: Re: function echo ' '
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-103759@lists.php.net to get a copy of this message
Thanks, that was new for me! /mj "Niklas lampén" <niklas.lists@publico.fi> skrev i meddelandet news:026b01c21c31$3bdab780$ba93c5c3@Niklas... Not true. :) You can do it like this: (Ok, this is a for loop, but idea is the same) <? for ($i = 0; $i < 10; ++$i) { ?> <a href="page<?=$i?>.htm>Page <?=$i?></a> <? }; ?> Niklas -----Original Message----- From: Martin Johansson [mailto:d99majo@swipnet.se] Sent: 25. kesäkuuta 2002 10:56 To: php-general@lists.php.net Subject: Re: [PHP] function echo ' ' But the problem is that Im doin it inside a while loop. So I need to echo it. /mj "Niklas lampén" <niklas.lists@publico.fi> skrev i meddelandet news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be <a href="<?=$address?>"> And this is not bad coding, it is actually faster than echoing everything. We had this conversation maybe a week ago, so let's not start it again. :) Niklas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/ ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/

« previous php.general (#103759) next »