you can pick your quotes...

From: Date: Fri, 21 Apr 2000 14:40:21 +0000
Subject: you can pick your quotes...
Groups: php.version4 
Request: Send a blank email to php-version4+get-13883@lists.php.net to get a copy of this message
Sorry if this is a FAQ or something, someone must have brought it up before. Another "can it be like Perl" request. But it would just be so great... if you could use something similar to "qq" and brethern to choose any character or character pair for string delimiters: $link = qq!<font face="sans-serif" color="black"><a href="foobar.html">xyz</a></font>!; $pic = qq[<img src="img/$imgname.gif" width="$imgwid" height="$imght" alt="" border="0" />]; The "here doc" emulation in php4 is great, but for one liners like this the backslashing gets to be a big PITA. And since we are using XHTML we have to use double quotes around every attribute/ Thx and BTW - php4RC1 rocks - we are in production -S -----------------------------------------------------/ Samuel Z Beam Beeline Internet Resources sbeam@beeline.net Boston MA 617.742.3178 <http://www.beeline.net/> /-----------------------------------------------------

« previous php.version4 (#13883) next »