solution($A) { if (is_ array($A)) { if ($b = preg_grep("/\-1/", $A)) { foreach ($b as $key => $value) { ...
www.daniweb.com