Re: Couple of beginner questions

From: Date: Mon, 12 Jan 2009 15:24:02 +0000
Subject: Re: Couple of beginner questions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.general 
Request: Send a blank email to php-general+get-286092@lists.php.net to get a copy of this message
At 12:25 PM -0500 1/11/09, Robert Cummings wrote:
Although, to be honest I tend to vertically spread my tags/attributes: $imgHTML =
    '<img'
.' src="'.$url.'"' .' alt="'.$alt.'"' .' title="'.$alt.'"' .' class="'.$imgclass.'"' .' />'; This makes it easy to see at a glance what is there and to also comment out lines easily.
I vertically stack variables as well, such as in developing a long MySQl $query, but I don't include any html in my echo statements. That's just a private rule of mine that is sometimes broken by client needs. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#286092) next »