|
Posted by Ewoud Dronkert on 02/19/06 11:56
howachen@gmail.com wrote:
> I want encode the string into a format that doesn't contains any
> special character like \n, \r and space etc.
>
> Currently base64_encode is used. But are there any faster methods?
Try urlencode, addslashes, htmlspecialchars, htmlentities, str_replace,
preg_replace, strtr.
--
E. Dronkert
Navigation:
[Reply to this message]
|