Or you can put your string in single quotes like so:

echo 'here is a word in quotes: "hello" ';

>From: David Smith <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [uug] how to put quote in a variable in PHP
>Date: Thu, 20 Mar 2003 16:16:45 -0700
>
>
>Wade Preston Shearer wrote:
>
>>how do you put a quote inside a variable in PHP?
>>
>> $variable = "Please click hereto
>>proceed.";
>>
>>...does not work because it stops when it gets to the second quote,
>>outputting the variable as...
>
>Like this:
>
>$variable = "Please click hereto
>proceed.";
>
>You can read all about it on the PHP website:
>http://www.php.net/manual/en/language.types.string.php
>Or in O'Reilly's _Programming PHP_
>
>--Dave
>
>
>
>
>
>
>____________________
>BYU Unix Users Group http://uug.byu.edu/
>___________________________________________________________________
>List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list


Add photos to your e-mail with MSN 8. Get 2 months FREE*. ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to