Answers for "how to remove some characters from a string in php"

PHP
32

php replace

str_replace ($search, $replace, $subject);
Posted by: Guest on June-17-2019
7

str_replace php

echo str_replace("worss","world","Hello worss in PHP!!");
Posted by: Guest on June-10-2020
-1

php remove control characters from string

preg_replace('/[[:cntrl:]]/', '', $input);
Posted by: Guest on June-29-2021

Code answers related to "how to remove some characters from a string in php"

Browse Popular Code Answers by Language