On Monday 26 February 2001 14:38, PHPBeginner.com wrote:

> > Yes, you could use stripslashes($string) on it's output, in this way 
it
> will be no different as it was inputted.

>  -----Original Message-----
> From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Printing long strings
>
>
>   How can I get php to print a long string and ignore any of the
> characters in the string?
>
>   ie:
>   $string = "so<me'strin^g";
>   print $string;

Hmm, perhaps he looks for a way to let the *browser* preserve the string 
(and not e.g. parse the "<" as start of a tag).
htmlentities () ist the function of choice then...

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"use the source, luke." (obi-wan gnuobi)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to