PHP - Arrays
Identify the error in this PHP code snippet:
$arr = ['x' => 1, 'y' => 2]; $key = array_search(2); echo $key;
$arr = ['x' => 1, 'y' => 2]; $key = array_search(2); echo $key;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions