Off topic (PHP String)

Justin Bennett justin.bennett at dynabrade.com
Wed Dec 31 11:20:39 EST 2003


Thank you.

Justin Bennett
Network Administrator
RHCE (Redhat Certified Linux Engineer)
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
 



Mark Musone wrote:

>str_replace("%","",$mystring);
>
>
>-----Original Message-----
>From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
>Justin Bennett
>Sent: Wednesday, December 31, 2003 10:22 AM
>To: nflug at nflug.org
>Subject: Off topic (PHP String)
>
>This is a little off topic but I don't think many will mind. I'm looking
>
>to delete a character from a PHP string. In particular %
>In perl I can do it with a translate. The php translate function doesn't
>
>want to replace the character with an empty string. I could probably do 
>something funky where I loop through the string, if the character is a %
>
>then don't copy ito to the new string, ect. Just wondering if there is 
>an easy way.
>
>Justin
>
>  
>



More information about the nflug mailing list