php - How to remove double quotes from a string - Stack Overflow - strip quotes php

Category

PHP - How to remove double quotes from json array keys? - clockmakers.info strip quotes php


I assume you mean quotation marks? Otherwise, go for some regex, this will work for html quotes for example: preg_replace("//", "".

If you want to remove quotes from both sides, just use regular trim(), the second argument is a string that contains all the characters you want to.

How do you strip quotes out of the data before loading to the database? php $quotes = 'I just wanted to say "Hello!"'; # three arguments.