Okay I have a string, say:
$str = 'foo bar "my string"';
How do I split it into:
foo, bar, my string
so when a space occurs inside " " it preserves it, instead of splitting it?
right now, in its non working form, i only have:
$array = preg_split('/[\s]/', $str);
Which does the same thing as explode.