I have a column in my database which contains text strings such as Tablet with 7" Screen and 3" stylus
, for example. When I get this data using PHP (through a Laravel Eloquent model, to be more specific), the string will have extra quotes--it will be presented as "Tablet with 7"" Screen and 3"" stylus"
. This is also how it is outputted in a var_dump()
.
How can I strip these extraneous quotation marks easily? I looked into stripslashes()
and stripcslashes()
but those didn't seem to do the job. Not sure if this is an issue with how MySQL is storing the data, or if there's some sort of function I'm missing that'll make this easier.