figured it out
Simple regex:
$results = array(); foreach($explodeSample as $query) { if(preg_match("@?o=[^0a-zA-Z]*@si", $query, $match)) { $results[] = $match[1]; } } echo '<pre>'; var_dump($results);
crap.... i was posting as you edited your post....