Answers for "php remove quotation marks from string"

PHP
0

php remove quotes

str_replace('"', "", $string);
Posted by: Guest on January-13-2021
1

php remove everything after character

$fullpath = 'folderName/file.ext';
$folder = substr($fullpath, 0, strpos($fullpath, '/'));
echo $folder;
// Output => folderName
Posted by: Guest on March-10-2020
2

php remove after character

$s = 'Posted On April 6th By Some Dude';
echo strstr($s, 'By', true); // Posted On April 6th
Posted by: Guest on October-06-2020
0

php remove quotes from string

str_replace(['"',"'"], "", $text)
Posted by: Guest on October-25-2021

Code answers related to "php remove quotation marks from string"

Browse Popular Code Answers by Language