<?php $values = ["hallo", "bye", "wie gehts", "foo", "bar"]; $keys = [1, 3]; var_dump(array_uintersect(array_flip($keys), $values));
You have javascript disabled. You will not be able to edit any code.