Re: echo string conatining ; or "
| From: | Philip Olson | Date: | Tue, 31 Oct 2000 08:00:23 +0000 |
| Subject: | Re: echo string conatining ; or " | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22871@lists.php.net to get a copy of this message | ||
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
>