Codice PHP:
for ($i=0;$i<count($array);$i++) {
 if (
ereg("banan",$array[$i])) {
  
//do something
 
}