--TEST-- Test array_key_exists() function : usage variations - floats and casting to ints --FILE-- --EXPECTF-- *** Testing array_key_exists() : usage variations *** -- Iteration 1 -- Pass float as $key: Warning: array_key_exists(): The first argument should be either a string or an integer in %s on line %d bool(false) Cast float to int: bool(true) -- Iteration 1 -- Pass float as $key: Warning: array_key_exists(): The first argument should be either a string or an integer in %s on line %d bool(false) Cast float to int: bool(true) -- Iteration 1 -- Pass float as $key: Warning: array_key_exists(): The first argument should be either a string or an integer in %s on line %d bool(false) Cast float to int: bool(true) Done