I have the following string from a form...
Opera \"adds cross-platform hardware\" \"kicks butt\" -hippies
In general I\'ve simpl
While I'm looking for the fastest approach I thought I would add my own approach to the challange.
'.$q.'
';print_r($p0);echo '
';print_r($terms);echo '
';print_r($open);echo '
Outputs the following...
Opera "adds cross-platform hardware" "kicks butt" -hippies
//Initial explode by spaces...
Array (
[0] => Opera [1] => "adds [2] => cross-platform [3] => hardware" [4] => "kicks [5] => butt" [6] => -hippies
)
//Final results...
Array (
[0] => Opera [1] => "adds cross-platform hardware" [2] => "kicks butt" [3] => -hippies
)