Late, and I know this is a very simple question, but right now I have no idea, and the deadline is near.
I have two arrays:
$array1 = array( 'a' => 'asdasd', 'b' => 'gtrgrtg', 'c' => 'fwefwefw', 'd' => 'trhrtgr', ); $array2 = array( 'b', 'c' );
What was the name of the function to get the part of the intermediary array by the keys from the second array?
$result = array( 'b' => 'gtrgrtg', 'c' => 'fwefwefw', );
Thanks!
arrays php
hsz
source share