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
a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
PHP Boolean data type falsetrue usage introduction. In php, falsetrue is true or false. in php, falsetrue is called a Boolean data type. it is a common data type. for example, conditional judgment is also a Boolean data type, in php, false true
This is the simplest type. Boolean represents the TRUE value, which can be TRUE or FALSE. This is the simplest type. Boolean represents the TRUE value, which can be TRUE or FALSE.
Syntax
To specify a Boolean value, use the keyword TRUE or FALSE.
Grammar:
To specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.
The code is as follows
Copy Code
$foo = True; Assign the value TRUE to $foo?>
The Boolean value returned by the
Numbers, floating-point, Boolean are value types, English: int, float, bool, so you know how they're used.
such as statements: $FA = 3.14;
String and array are reference types, that is, they are placed in the stack as an address, when
A string is composed of a series of characters, each of which is equivalent to a byte. This means that PHP only supports the 256 character set and therefore does not support Unicode. For details, see the description of the string type. Note: string..
This is the simplest type. Boolean expresses the truth value, which can be TRUE or FALSE.
Grammar
To specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.
The Boolean result returned by the usual operator is passed to
Php Boolean data type and process-controlled data type conversion Boolean data type is the simplest data type. It can be TRUE or FALSE, and keywords are case-insensitive. To explicitly convert an & #20540; to a boolean type, use (bool) or (boolean)
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
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.