How to Remove Special Character from String in PHP

How to Remove Special Character from String in PHP

some data that contains special characters (e.g. single quote, double quote. special characters removed from a string using the preg_replace function.

In this tutorial, I will inform you how to remove the special character from string in PHP. we want to remove all special characters from the string by using preg_replace. So, its function will remove any special character except letter and numbers.

Please follow and like us:
error

One thought on “How to Remove Special Character from String in PHP

  1. Hi there I am so thrilled I found your site, I really found you by error, while I was browsing on Askjeeve for something else, Anyhow I am here now and would just like to say thanks for a remarkable post and a all round entertaining blog (I also love the theme/design), I don’t have time to look over it all at the moment but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the fantastic job.

Leave a Reply

Your email address will not be published. Required fields are marked *