Get data type:1. If you want to see the value and type of an expression, use Var_dump ().2. If you just want an easy-to-read type of expression for debugging, use GetType ().3. To view a type, do not use GetType () and use the Is_type ()
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
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
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
Boolean type
This is the simplest type. Boolean expresses the truth value, which can be TRUE or FALSE.
Note: The Boolean type is introduced in PHP 4.Grammar
To specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.
PHP Boolean data types and process-controlled data type conversions
The Boolean is the simplest type of data. can be true or false, and the keyword is not case-sensitive.
To explicitly convert a value to a Boolean type, use (bool) or (Boolean) to
That is, if you assign a string value to the variable Var,var it becomes a string. If you assign an integer value to Var, it becomes an integer.
The type casts in PHP are very similar to those in C: precede the variables to be converted with the
This is the simplest type. Boolean expresses the truth value, which can be TRUE or FALSE.
Note: The Boolean type is introduced in PHP 4.
GrammarTo specify a Boolean value, use the keyword TRUE or FALSE. Two are not case-sensitive.$foo
July 20, 2017 15:41:26Boolean Boolean type1. This is the simplest type. Boolean expresses the truth value, which can be TRUE or FALSE. is actually a true and false problem.2. SyntaxTo specify a Boolean value, use the keyword TRUE or FALSE. Two are
That is, if you assign a string value to the variable Var,var it becomes a string. If you assign an integer value to Var, it becomes an integer.
The type casts in PHP are very similar to those in C: precede the variables to be converted with the
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.