In php, false true indicates true or false. in php, it is called a boolean data type. It is a common data type. For example, conditional judgment is also a boolean data type, the following is an introduction.
Syntax
To specify a Boolean value, use
SyntaxTo specify a Boolean value, use the keyword TRUE or FALSE. Both are case insensitive. The code is as follows:Copy code $ Foo = True; // value TRUE to $ foo?> You usually use some operators to return a boolean value and pass it to the
The image above is the part of the gridview bound to the background database. The fourth column shows the gender column. The data type in the background database is boolean. The values are true or false. If the value is true, the data type is male.
The image above is the part of the GridView bound to the background database. The fourth column shows the gender column. The data type in the background database is boolean. The values are true or false. If the value is true, the data type is male.
in PHP$a = ' 0 ';$b = (bool) $a;Var_dump ($a);//Output FalseIn JS, the official description:Note:if The value parameter is omitted, or was 0, 0, NULL,, False, undefined, or NaN, the object is set to False.Otherwise It is set to true (even with the
Front.
Boolean booleans may be the simplest of three wrapper objects number, String, and Boolean. Numbers and string objects have a large number of instance properties and methods, but few Boolean. In a sense, for the computer design program is to
xCatalog [1] definition [2] application scenario [3] to Boolean [4] instance method in front of the wordsThe boolean bool type may be the simplest of three wrapper objects in number, String, and Boolean. Number and string objects have a lot of
For example, the following code:
$str4="php-class,mysql-class,div-css,0,dreamweaver";$s=strtok($str4,',');while($s!==false){ echo $s.""; $s=strtok(',');}
while ($s ===true) {} Why can't it be displayed?True where to use it ~ ~Beginners Please
Http://blog.chinaunix.net/uid-28458801-id-3941112.htmlThe difference between false/true and False/true 1. The difference between false/true and false/true: False/true is a new keyword in the standard C + + language, and False/true is through #
The Boolean type can be the simplest of the three packaging objects: Number, String, and Boolean. Number and String objects have a large Number of instance attributes and methods, but few Boolean objects. In a sense, designing a program for a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.