PHP remove special characters in the string

How to remove special characters in the string using php.This example it shows how to remove special characters from a string using regular expressions of php.