<?php $foo = ['a', 'b', 'c']; $bar = ['d', 'd', 'f']; print_r(array_intersect_key($foo,array_rand($foo, 2)));
You have javascript disabled. You will not be able to edit any code.