I've tried using the below
我试过使用下面的内容
$string= 'hello world<br>this is newline<br><br>another line';
echo $string.'<hr><br>';
echo preg_replace_callback('/^[a-zA-Z0-9]/m', function($m) {
return strtoupper($m[0]);
}, $string);
$striI've tried using the below
我试过使用下面的内容
$string= 'hello world<br>this is newline<br><br>another line';
echo $string.'<hr><br>';
echo preg_replace_callback('/^[a-zA-Z0-9]/m', function($m) {
return strtoupper($m[0]);
}, $string);
$stri