function mySubstr($con,$startstr,$endstr){ $start = strpos($con, $startstr)+strlen($startstr); $len = strpos($con, $endstr)-$start; return trim(substr($con, $start,$len)); }
本文共 221 字,大约阅读时间需要 1 分钟。
function mySubstr($con,$startstr,$endstr){ $start = strpos($con, $startstr)+strlen($startstr); $len = strpos($con, $endstr)-$start; return trim(substr($con, $start,$len)); }
转载于:https://my.oschina.net/villa/blog/100794