2 /* Prototype : array array_flip(array $input)
3 * Description: Return array with key <-> value flipped
4 * Source code: ext/standard/array.c
8 * Trying different invalid values for 'input' array argument
10 // class definition for object data
13 public function __toString()
18 <<__EntryPoint
>> function main(): void
{
19 echo "*** Testing array_flip() : different invalid values in 'input' array argument ***\n";
24 $fp = fopen(__FILE__
, 'r');
28 'float_value1' => 1.2,
29 'float_value2' => 0.5,
30 'flaot_value3' => 3.4E3
,
31 'flaot_value4' => 5.6E-6,
34 'bool_value1' => true,
35 'bool_value2' => false,
36 'bool_value3' => TRUE,
37 'bool_value4' => FALSE,
40 'null_value1' => null,
43 'array_value' => array(1),
49 'resource_value' => $fp,
52 var_dump( array_flip($input) );