PHP截取字符串
function GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return $r[0]; } return ''; } echo GetBetween("abcdefghijklmnopqrstuvw","def","t"); //输出:ghijklmnopqrs
IT技术畅销书推荐PHP|JAVA|ORACLE|MYSQL|LINUX|ANDROID学习书籍