From d298524aee521b3f3659665daf0174fc0c71c565 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Wed, 18 Jun 2003 23:02:30 +0000 Subject: [PATCH] Clear up some more text. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132429 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/language/types.xml b/language/types.xml index 6c8b1ce804..c9f59644c3 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1285,14 +1285,15 @@ echo $arr[12]; // 1 - A key may be either an integer - string. If a key is the standard representation of - an integer, it will be interpreted as such (i.e. - "8" will be interpreted as - 8, while "08" will be - interpreted as "08"). There are no different - indexed and associative array types in PHP; there is only one - array type, which can both contain integer and string indices. + A key may be either an + integer or a string. If a key is + the standard representation of an integer, it will + be interpreted as such (i.e. "8" will be + interpreted as 8, while + "08" will be interpreted as + "08"). There are no different indexed and + associative array types in PHP; there is only one array type, + which can both contain integer and string indices. A value can be of any PHP type. @@ -1311,14 +1312,14 @@ echo $arr["somearray"]["a"]; // 42 - If you provide the brackets without specifying a key, then the - maximum of the integer indices is taken, and the new key will be - that maximum value + 1--unless that maximum value is negative - (is it perfectly legal to have negative array indices). In this - case, the new key will be 0. If no integer - indices exist yet, the key will be 0 - (zero). If you specify a key that already has a value assigned - to it, that value will be overwritten. + If you do not specify a key for a given value, then the maximum + of the integer indices is taken, and the new key will be that + maximum value + 1--unless that maximum value is negative (is it + perfectly legal to have negative array indices). In this case, + the new key will be 0. If no integer indices + exist yet, the key will be 0 (zero). If you + specify a key that already has a value assigned to it, that + value will be overwritten. bare string (an unquoted string which does - not correspond to any known symbol, such as constants) into a - string which contains the bare string. For instance, if there is - no defined constant named bar, then PHP - will substitute in the string 'bar' and use - that. + not correspond to any known symbol) into a string which contains + the bare string. For instance, if there is no defined constant + named bar, then PHP will substitute in the + string 'bar' and use that.