Off topic (PHP String)
Mark Musone
mmusone at shatterit.com
Wed Dec 31 10:54:54 EST 2003
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
--
Justin Bennett
Network Administrator
RHCE (Redhat Certified Linux Engineer)
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/2003
More information about the nflug
mailing list