1--TEST-- 2Test array_key_exists() function : usage variations - referenced variables 3--FILE-- 4<?php 5/* 6 * Pass referenced variables as arguments to array_key_exists() to test behaviour 7 */ 8 9echo "*** Testing array_key_exists() : usage variations ***\n"; 10 11$array = array('one' => 1, 'two' => 2, 'three' => 3); 12 13echo "\n-- \$search is a reference to \$array --\n"; 14$search = &$array; 15var_dump(array_key_exists('one', $search)); 16 17echo "Done"; 18?> 19--EXPECT-- 20*** Testing array_key_exists() : usage variations *** 21 22-- $search is a reference to $array -- 23bool(true) 24Done 25