93776/how-do-i-remove-quotes-from-a-string
How to remove all types of quotes (different languages) from $string?
$string = "my text has \"double quotes\" and 'single quotes'";
Any php code for this?
Hello @kartik,
Try this:
str_replace('"', "", $string); str_replace("'", "", $string);
Otherwise, go for some regex, this will work for html quotes for example:
preg_replace("/<!--.*?-->/", "", $string);
Hope it helps!!
Hello @kartik, Use the toSql() method on a QueryBuilder instance. DB::table('users')->toSql() would return: select * ...READ MORE
Hello @kartik, It should be as simple as ...READ MORE
Hello @kartik, Find the index of the array element you ...READ MORE
Hello @kartik, This should do what you're looking ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hello @kartik, Each YouTube video has four generated ...READ MORE
Hello @kartik, In SQL Server, use MERGE MERGE INTO YourTable ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.