$number = '你好啊(小明)';
$result = substr(substr($number,strripos($number,"(")+1),0,strrpos(substr($number,strripos($number,"(")+1),")"));
echo $result;
php提取小括号里字符
最新推荐文章于 2022-06-21 12:58:59 发布
$number = '你好啊(小明)';
$result = substr(substr($number,strripos($number,"(")+1),0,strrpos(substr($number,strripos($number,"(")+1),")"));
echo $result;