ϖ strip these?
Moderator: General Moderators
-
jasondavis
- Forum Commoner
- Posts: 60
- Joined: Sat Feb 04, 2006 5:35 pm
ϖ strip these?
How can I strip things like ϖ out of a variable, Im not sure what they are called but hteres like 100's of them
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Those are HTML entities (or sometimes refered to as ASCII characters, though I was told that was not the correct name for them). Do you want to get rid of them altogether? If so, use
.
Code: Select all
str_replace()-
jasondavis
- Forum Commoner
- Posts: 60
- Joined: Sat Feb 04, 2006 5:35 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
$string = preg_replace('/&#\d+;/', '', $string);- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA