In this tutorial we will see How To Remove Single Quotes From String in PHP. PHP str_replace[] function and preg_replace[] function can be used to remove single quotes from a string.
PHP str_replace[] function
PHP str_replace[] function replaces given characters or a string with other string or characters.
In this example str_replace[] function is used to remove the single quote from string.