From 5933a0d8743fff44143b396c0b81bb612e1046dc Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sat, 14 Jun 2003 04:00:55 +0000 Subject: [PATCH] added note to explain unset() doesn't change maximum index value. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131464 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/language/types.xml b/language/types.xml index 2e8817ff08..f90e1dcbf1 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1391,6 +1391,26 @@ unset($arr); // This deletes the whole array + + + If you omit a key, the maximum of the integer-indices is taken, and + the new key will be that maximum + 1. + Note that the maximum is same when the element having + maximum-index was cleared using unset function. + + + 'orange', 1 => 'apple', 3 => 'carrot') +?> +]]> + + + +