Re: Preferred Syntax

From: Date: Wed, 14 Dec 2011 16:48:26 +0000
Subject: Re: Preferred Syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316010@lists.php.net to get a copy of this message
On 12/14/2011 7:59 AM, Rick Dwyer wrote:
Hello all. Can someone tell me which of the following is preferred and why? echo "<a style='text-align:left;size:14;font-weight:bold' href='/mypage.php/$page_id'>$page_name</a><br>"; echo "<a style='text-align:left;size:14;font-weight:bold' href='/mypage.php/".$page_id."'>".$page_name."</a><br>"; When I come across the above code in line 1, I have been changing it to what you see in line 2 for no other reason than it delineates out better in BBEdit. Is this just a preference choice or is one method better than the other? --Rick
This not a PHP subject and should not be here. However, styles should be in the style block or better in the styles CSS file. Spend some time learning about CSS3 and modern techniques.

« previous php.general (#316010) next »