I have this total USD100.75 from
string.I am getting the next word like this
$s = 'total USD100.75 from';
$r = preg_match_all('/(?<=(total))(\s\w*)/',$s,$matches);
print_r($matches[0]);
However i would like to get the string between two specific strings i.e total
and from
. How may i get the middle string?.