Want to remove Â

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
ecom
Forum Newbie
Posts: 1
Joined: Mon Sep 15, 2008 1:56 am

Want to remove Â

Post by ecom »

I want to strip this character: Â

I'm not quite sure how to do this. Any help would be great!
User avatar
prometheuzz
Forum Regular
Posts: 779
Joined: Fri Apr 04, 2008 5:51 am

Re: Want to remove Â

Post by prometheuzz »

ecom wrote:I want to strip this character: Â

I'm not quite sure how to do this. Any help would be great!

Code: Select all

$str = 'aaÂaa';
$str = preg_replace('/Â/', '', str);
User avatar
GeertDD
Forum Contributor
Posts: 274
Joined: Sun Oct 22, 2006 1:47 am
Location: Belgium

Re: Want to remove Â

Post by GeertDD »

Or even str_replace() which is slightly faster, I guess.
Post Reply