there is addslashes();
http://www.php.net/manual/en/function.addslashes.php

john



[EMAIL PROTECTED] wrote:

> Hi,
>
> Anyone know the best method to escape the % sign in PHP?
>
> I`ve checked the manual and devshed and didn`t come across much, is there a
> command like addslashes() or would I have to use something like this...
>
> $Field="A%D%E";
> $Field1=str_replace("%","percent",$Field);
>
> Thanks for any input
>
> Ade
>
> --
> 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]


-- 
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