Forum Moderators: coopster
$split = split('[<>']', $value);
that gets the data in between the < > characters in $value, but i would like to know how i can get the data from instead of < > i want it to be like START_ and _END. if i do it like:
$split = split('[START__END>']', $value);
it doesnt seem to work
any ideas?
thanks
$str = "[<text in between 1>]we don't want this[<text in between 2>]we don't want this[<text in between 3>]";
$arr = explode("[<", $str);
$return = array();
foreach($arr as $i){
$tempStr = substr($i, 0, (strpos($i, ">]")));
array_push($return, $tempStr);
}//foreach