/ Published in: PHP
Two functions. 1) Find the string between characters. 2) Create array of strings found between two characters.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function TextBetweenArray($s1,$s2,$s){ do{ if($pos1!==false){ if($pos2!==false){ } } } while (($pos1!==false)and($pos2!==false)); return $myarray; } function TextBetween($s1,$s2,$s){ if($pos1 !== false){ } return ''; }