Re: Transform a block of code in PHP

From: Date: Fri, 23 Feb 2007 20:25:30 +0000
Subject: Re: Transform a block of code in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249315@lists.php.net to get a copy of this message
On Fri, February 23, 2007 6:12 am, Helder Lopes wrote: > how to transform a block of code in html to php?? > for example this, I'm not sure I understand the question... Look for the parts that repeat, and re-factor them as a loop through some kind of data storage such as a database? Or perhaps you are just looking for the 'heredoc' language construct? http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#249315) next »