PHP 截取字符串

根據給出的先後內容截取字符,我的封裝了一個方法,還挺好用的。php <?php function cutstr($haystack, $before_needle, $after_needle) { $start = is_int($before_needle) ? $before_needle: (strpos($haystack, $before_needle) + strlen($
相關文章
相關標籤/搜索