Re: Escape %
| From: | John LYC | Date: | Mon, 26 Feb 2001 07:22:12 +0000 |
| Subject: | Re: Escape % | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41654@lists.php.net to get a copy of this message | ||
there is addslashes();
http://www.php.net/manual/en/function.addslashes.php
john
Website4S@aol.com wrote:
> Hi,
>
> Anyone know the best method to escape the % sign in PHP?
>
> I
ve checked the manual and devshed and didnt 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net