Say I have a string
$what = "1 x Book @ $20 32 x rock music cd @ $400 1 x shipping to india @ $10.5";
And I want to explode so that output is
Array
(
[0] => 1 x Book @ $20
[1] => 32 x rock music cd @ $400
[2] => 1 x shipping to india @ $10.50
)
I am thinking something like below but dont know which regular expressions to use!
$items = preg_split('/[$????]/', $what);
Thanks in advance