PHP 截取字符串

根据给出的先后内容截取字符,我的封装了一个方法,还挺好用的。php <?php function cutstr($haystack, $before_needle, $after_needle) { $start = is_int($before_needle) ? $before_needle: (strpos($haystack, $before_needle) + strlen($
相关文章
相关标签/搜索