Try
$myvar = 'hell<o my friend';
or
$myvar = htmlentities("hell<o my friend");
-Brian
> -----Original Message-----
> From: Christian Ista [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 12:56 PM
> To: [EMAIL PROTECTED]
> 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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php