jumping between php and html or using echo for printing html-tags.

From: Date: Thu, 06 Feb 2003 20:58:14 +0000
Subject: jumping between php and html or using echo for printing html-tags.
Groups: php.general 
Request: Send a blank email to php-general+get-134678@lists.php.net to get a copy of this message
Which is more efficient: function admin_menu() { echo "<B> Meny </B><BR>"; echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . MANAGE_MEMBERS . "\">Medlemmar</A><BR>"; echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . MANAGE_ALBUMS . "\">Album</A><BR>"; echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . INITIAL_PAGE . "\">Huvudmeny</A><BR>"; echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . LOG_OUT . "\">Logga ut</A><BR>"; } or function admin_menu() { ?> <B> Meny </B><BR> <A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(MANAGE_MEMBERS) ;?>">Medlemmar</A><BR> <A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(MANAGE_ALBUMS) ;?>">Album</A><BR> <A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(INITIAL_PAGE) ;?>">Huvudmeny</A><BR> <A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(LOG_OUT);?>">Logga ut</A><BR> <?php } Any reasons other than speed to choose either? -- anders thoresson

« previous php.general (#134678) next »