From c585222898f7d9cac60413f90b4e6c870e5d8701 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Tue, 21 Jan 2003 07:17:32 +0000 Subject: [PATCH] Added , and missing CDATA's. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@112919 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 107 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 104 insertions(+), 3 deletions(-) diff --git a/language/types.xml b/language/types.xml index 86f2a1c57f..4779231790 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -127,6 +127,7 @@ ]]> @@ -185,7 +187,9 @@ if (is_string($bool)) { ]]> @@ -199,6 +203,7 @@ $foo = True; // assign the value TRUE to $foo \n"; } +?> ]]> @@ -283,6 +289,7 @@ if ($show_separators) { ]]> @@ -325,10 +333,12 @@ echo gettype((bool) array()); // bool(false) Integer literals ]]> @@ -336,6 +346,7 @@ $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) ]]> @@ -368,6 +380,7 @@ integer : [+-]?decimal ]]> @@ -410,9 +424,11 @@ var_dump($large_number); ]]> @@ -467,7 +483,9 @@ var_dump(round(25/7)); // float(4) ]]> @@ -511,7 +529,13 @@ echo (int) ( (0.1+0.7) * 10 ); // echoes 7! specified using any of the following syntaxes: -$a = 1.234; $a = 1.2e3; $a = 7E-10; + +]]> Formally: @@ -641,6 +665,7 @@ EXPONENT_DNUM ( ({LNUM} | {DNUM}) [eE][+-]? {LNUM}) ]]> @@ -841,10 +867,12 @@ EOT; ]]> @@ -865,6 +893,7 @@ echo "He drank some ${beer}s"; // works 'red', 'banana' => 'yellow'); // note that this works differently outside string-quotes @@ -874,7 +903,7 @@ echo "This square is $square->width meters broad."; // Won't work. For a solution, see the complex syntax. echo "This square is $square->width00 centimeters broad."; - +?> ]]> +?> +]]> @@ -2031,8 +2112,12 @@ examples: + +]]> @@ -2052,8 +2137,12 @@ $a[0] = "f"; // What about string offsets? What happens? above: + +]]> See the section titled String @@ -2070,8 +2159,12 @@ $a{1} = "f"; // $a is now "afc" is to be cast. + +]]> @@ -2103,8 +2196,12 @@ $bar = (boolean) $foo; // $bar is a boolean the following are functionally equivalent: + +]]> @@ -2114,6 +2211,8 @@ $foo = ( int ) $bar; the variable in double quotes. + +]]>