RE: [PHP] echo string conatining ; or "

From: Date: Tue, 31 Oct 2000 08:14:17 +0000
Subject: RE: [PHP] echo string conatining ; or "
Groups: php.general 
Request: Send a blank email to php-general+get-22876@lists.php.net to get a copy of this message
Just to add: I also used double quotes for a LONG time, until I came across that article on Zend, The fun thing is that it is not only _easier_ to output HTML staff but single quotes are also faster (I tested it myself). This is due the fact that the 'string' is not parsed for variables by parser while "string" does. PS: if you sometimes happen to generate a PHP page with PHP ( cloning ) then, yeah, man ... single quote will be some kind of RED CROSS for you. Cheers! -----Original Message----- From: Philip Olson [mailto:philip@theprojects.org] Sent: Tuesday, October 31, 2000 5:00 PM To: Boris.C Cc: php-general@lists.php.net Subject: Re: [PHP] echo string conatining ; or " single quotes are your friend! use them wisely, from this day on you will be very happy to know of there use! echo '<input name="f1" value="Home Sweet World">'; also, read this it is good string tutorial : Using Strings : http://www.zend.com/zend/tut/using-strings.php By Nathan Wallace basically, anything in '' does not parse. but keep in mind : echo 'i ain\'t gonna take that!'; anyway, the above tutorial is useful and will make you happy. philip -- be outside the box. On Tue, 31 Oct 2000, Boris.C wrote: > I tried to fond a way echoing "s and ;s, but I found nothing like escape() > in Java Script. Can you tell me how to echo > <input name="f1" value="Hello Sweet World"> ? > > Thxx > Boris Crismancich > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#22876) next »