Page 1 of 1

Want to remove Â

Posted: Mon Sep 15, 2008 1:58 am
by ecom
I want to strip this character: Â

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

Re: Want to remove Â

Posted: Mon Sep 15, 2008 3:40 am
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);

Re: Want to remove Â

Posted: Mon Sep 15, 2008 7:35 am
by GeertDD
Or even str_replace() which is slightly faster, I guess.