$first = array('e', 'h', 'r', 'j', 'b');$last = array('w', 'e', 'c');$intersection = array_intersect($last, $first);echo '';foreach ($intersection as $v) { echo "{$v} "; }echo "\n";?>
';foreach ($intersection as $v) { echo "{$v} "; }echo "