str_replace('"', "'", $text);
or Re-assign it
$text = str_replace('"', "'", $text);
More Related Contents:
- How to get “v.3.1.2” in string by regex php [duplicate]
- Replace preg_replace() e modifier with preg_replace_callback
- How do I find all YouTube video ids in a string using a regex?
- Is there a PHP function that can escape regex patterns before they are applied?
- Remove new lines from string and replace with one empty space
- php Replacing multiple spaces with a single space [duplicate]
- How to mimic Stack Overflow Auto-Link Behavior
- How to make dot match newline characters using regular expressions
- Remove control characters from PHP string
- Regex for names
- Strip all HTML tags, except allowed
- Parse a CSS file with PHP
- Extract URL from string
- How to split a long string without breaking words?
- How to capitalize first letter of first word in a sentence?
- How do I extract query parameters from a URL string in PHP?
- PHP Regex find text between custom added HTML Tags
- How to Regex-replace multiple tags with one tag?
- Function eregi() is deprecated [duplicate]
- regex matching links without tag
- Split string into sentences using regex
- How to search in an array with preg_match?
- Regex for checking if a string has mismatched parentheses?
- php regex word boundary matching in utf-8
- Replace tabs and spaces with a single space as well as carriage returns and newlines with a single newline
- How to properly escape a backslash to match a literal backslash in single-quoted and double-quoted PHP regex patterns
- PHP regex for validating a URL
- Regex matching table rows in HTML [duplicate]
- Get non-numeric characters then number on each line of a block of texf
- Validate date format in php