diff --git a/functions/array.xml b/functions/array.xml
index 9bb469d9af..76fd1dc67a 100644
--- a/functions/array.xml
+++ b/functions/array.xml
@@ -270,7 +270,20 @@ $even_arr = array_filter($array2, "even");
- Array_flip returns an array in flip order.
+ array_flip returns an array in flip order,
+ i.e. keys from trans become values and
+ trans's values become keys.
+ Note that array_flip works only with string
+ and integer values, and it will display an alert if it detects
+ invalid key or value (array, double, object, boolean).
+
+
+ If a value has several occurences, the latest key will be
+ used as its values, and all others will be lost.
+
+
+ array_flip returns FALSE
+ if it fails.
@@ -281,6 +294,16 @@ $original = strtr ($str, $trans);
+
+
+ Array_flip example : collision
+
+$trans = array ("a" => 1, "b" => 1, "c" => 2);
+$trans = array_flip ($trans);
+// now $trans is : array(1 => "b", 2 => "c");
+
+
+
@@ -1011,9 +1034,9 @@ $result_keyed = array_reverse ($input, TRUE);
- This makes $result have array
- (array ("green", "red"), 4.0, "php"). But
- $result2[0] is still
+ This makes both $result and $result_keyed
+ be array(array ("green", "red"), 4.0, "php"). But
+ $result_keyed[0] is still
"php".