This is my string:
$a='"some text';`
How can I remove the double quote so my output will look like this?
some text`
Use the String. replaceAll() method to remove all double quotes from a string, e.g. str. replaceAll('"', '') . The replace() method will return a new string with all double quotes removed.
We can remove the duplicate characters from a string by using the simple for loop, sorting, hashing, and IndexOf() method.
str_replace()
echo str_replace('"', '', $a);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With