PHP Regular Replacement function ereg_replace The following example uses the PHP regular replacement function ereg_replace to replace the specified character with the character instance I want to use.
PHP Tutorial Regular Replacement function ereg_replace
The following example uses the PHP regular replacement function ereg_replace to replace the specified character with the character instance I want to use.
*/
$num = ' www.bkjia.com ';
$string = "This string had four words.
";
$string = ereg_replace (' Four ', $num, $string);
Echo $string;
$num = ' 49 ';
$string = "This string had four words";
$string = ereg_replace (' Four ', $num, $string);
Echo $string;
$string = "Test text";
echo "********** $string **********
";
$string = ereg_replace ("^", "
", $string);
$string = Ereg_replace ("$", "
", $string);
echo "========== $string ==========";
http://www.bkjia.com/PHPjc/445434.html www.bkjia.com true http://www.bkjia.com/PHPjc/445434.html techarticle PHP Regular Replacement function ereg_replace The following example uses the PHP regular replacement function ereg_replace to replace the specified character with the character instance I want to use. PHP Tutorial Regular replacement function ...