I have an issue when posting the £ symbol to my DB it seems to add some strange characters before it. I’ve decided that the best thing to do is to strip the symbol before it goes in to the DB and add it back in again when I read the data.
Is there a simple PHP function that will take my $variable, take out that specific character before I send it and then create a new $variable_new that I can send to the DB.
Thanks, Jonny
This should be what you are looking for.
$variable_new = str_replace('£','',$variable);