need to remove an apostrophe ‘ from a string


$newaddress = str_replace("'", "", "$address");
That should work, for other answers visit [php.net...]

Comments

Popular posts from this blog

MySQL error when inserting data containing apostrophes (single quotes)

Simple Laravel CRUD with Resource Controllers