RE: [PHP] Trouble wirh < in a string

From: Date: Fri, 11 Oct 2002 17:14:22 +0000
Subject: RE: [PHP] Trouble wirh < in a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119672@lists.php.net to get a copy of this message
Try $myvar = 'hell&#60;o my friend'; or $myvar = htmlentities("hell<o my friend"); -Brian > -----Original Message----- > From: Christian Ista [mailto:mailing-list@istasofts.com] > Sent: Friday, October 11, 2002 12:56 PM > To: php-general@lists.php.net > Subject: [PHP] Trouble wirh < in a string > > > Hello, > > I have a small problem a string I have for example : $myvar= "hell<o my > friend"; > When I display the content of $myvar with echo I see "hell" and not the > rest. > > I suppose the problem come from the < how solve the problem ? > > Bye > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#119672) next »