function imnobby_custom_explode($from_1, $from_2, $output){ $value_1 = explode($from_1, $output); $value_2 = explode($from_2, $value_1[1]); $tmphtml = $value_2[0]; return $tmphtml; } // $output = imnobby_custom_explode("from text", "to text", "this will get the text between the from text and to text"); function imnobby_custom_explode_all($from_1, $from_2, $output){ $tmphtml_array = array(); $value_1 = explode($from_1, $output); for ($i=1; $i<sizeof($value_1); $i++){ $value_2 = explode($from_2, $value_1[$i]); array_push($tmphtml_array, $value_2[0]); } return $tmphtml_array; }Related Keywords: Developer, How-to, Solved, PHP Get Text, PHP Filter Text, PHP Custom Explode, PHP Function, Single Line of Code
喜歡這篇文章嗎?
(暫時未有評分)
Loading...
(暫時未有評分)
Loading...
沒有評論