Answers for "php string remove html entities"

PHP
2

php remove null bytes from string

$text = str_replace("\0", "", $text);
Posted by: Guest on January-29-2021
0

php remove dashes from string

//replace dashes (-) with spaces ( )  
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);
Posted by: Guest on September-01-2020

Browse Popular Code Answers by Language