From c8b83442db4c008725090d95d5dc5f18b8167e75 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Wed, 20 Jun 2001 21:46:03 +0000 Subject: [PATCH] Better XML, fixed boolean where it should have said integer git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@49923 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/language/types.xml b/language/types.xml index af935620b0..032b73a19d 100644 --- a/language/types.xml +++ b/language/types.xml @@ -136,8 +136,8 @@ Syntax - To specify a boolean-literal, use either the keyword TRUE - or FALSE. Both are case-insensitive. + To specify a boolean-literal, use either the keyword TRUE + or FALSE. Both are case-insensitive. @@ -189,7 +189,7 @@ if ($show_separators) When converting to boolean, the following values - are considered FALSE: + are considered FALSE: @@ -225,12 +225,12 @@ if ($show_separators) - Every other value is considered TRUE (including any + Every other value is considered TRUE (including any resource). -1 is considered - TRUE, like any other non-zero (whether negative + TRUE, like any other non-zero (whether negative or positive) number! @@ -345,7 +345,7 @@ var_dump($large_number); the (int) or the (integer) cast. However, in most cases you do not need to use the cast, since a value will be autmatically converted if an operator, function or - control-structure requires a boolean-argument. + control-structure requires a integer-argument. See also type-juggling. @@ -355,8 +355,8 @@ var_dump($large_number); From <link linkend="language.types.boolean" >booleans</link> - FALSE will yield - 0 (zero), and TRUE + FALSE will yield + 0 (zero), and TRUE will yield 1 (one).