获取指定字符串中间的值

//                  字符串  起始字符串 结束字符串
function
GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return trim($r[0]); } return ''; }

 

posted @ 2018-08-09 10:25  zrn  阅读(892)  评论(0编辑  收藏  举报