1--TEST--
2basic array_flip test
3--FILE--
4<?php
5$trans = array("a" => 1,
6               "b" => 1,
7               "c" => 2,
8               "z" => 0,
9               "d" => TRUE,
10               "E" => FALSE,
11               "F" => NULL,
12               0 => "G",
13               1 => "h",
14               2 => "i");
15$trans = array_flip($trans);
16var_dump($trans);
17?>
18--EXPECTF--
19Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
20
21Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
22
23Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
24array(6) {
25  [1]=>
26  string(1) "b"
27  [2]=>
28  string(1) "c"
29  [0]=>
30  string(1) "z"
31  ["G"]=>
32  int(0)
33  ["h"]=>
34  int(1)
35  ["i"]=>
36  int(2)
37}
38