当前位置: 代码迷 >> PHP >> php 正则处置 两个字符串间的数据
  详细解决方案

php 正则处置 两个字符串间的数据

热度:32   发布时间:2016-04-29 00:11:50.0
php 正则处理 两个字符串间的数据

?

?

$str=' this is my string{parent_id} hello';if( preg_match("/{(.+?)}/isU",$str,$res)) echo $res[1];#print_r($res);结果输出parent_id
  相关解决方案