- A+
所属分类:PHP
preg_match
在匹配UTF-8
时不加u
修饰符会发出此警告。
<?php
preg_match("/^\x{3010}(.*)\x{3011}/u", $content, $matches);
var_dump($matches);
- 我的微信
- 这是我的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-
preg_match
在匹配UTF-8
时不加u
修饰符会发出此警告。
<?php
preg_match("/^\x{3010}(.*)\x{3011}/u", $content, $matches);
var_dump($matches);