阅读背景:

PHP用大写字母替换每行的第一个较低的cased char

来源:互联网 

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);
$stri



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: