Re: Printing long strings

From: Date: Mon, 26 Feb 2001 19:19:02 +0000
Subject: Re: Printing long strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41726@lists.php.net to get a copy of this message
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:cdukes@cdukes.com] > Sent: Monday, February 26, 2001 9:57 AM > To: php-general@lists.php.net > 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)

« previous php.general (#41726) next »