Answers for "replace word in php string with different words"

PHP
8

php replace string within string

$new_string = str_replace( $take_out, $put_in, $string);
Posted by: Guest on August-18-2020
0

replace exact word in php

$string = preg_replace('/\bthe\b/', '', $string);
Posted by: Guest on May-13-2021

Code answers related to "replace word in php string with different words"

Browse Popular Code Answers by Language