What is the best method to remove quotation marks in PHP strings?

When working with PHP strings that contain quotation marks, you may need to remove them for various reasons. The best method to remove quotation marks in PHP strings is to use the `str_replace()` function. This function allows you to replace one or more characters in a string with another character or characters. By specifying the quotation marks as the characters to be replaced and an empty string as the replacement, you can effectively remove them from the string.

<?php
$string_with_quotes = 'This is a "quoted" string.';
$string_without_quotes = str_replace('"', '', $string_with_quotes);

echo $string_without_quotes; // Output: This is a quoted string.
?>