Answers for "remove char from string 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
0

replace all numbers in string php

$words = preg_replace('/[0-9]+/', '', $words);
Posted by: Guest on October-21-2020
-1

php remove control characters from string

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

Code answers related to "remove char from string php"

Browse Popular Code Answers by Language