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
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 #
In my past experience, if I had to decide whether to use the enum data type of mysql, I would give up ENUM () and replace it with tinyint without thinking about it, the reason is what scenarios I have used before and are suitable for use.
In my past
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
PHP Data type, true or false? 1. are all resource types true?
2. are NULL types false?
Reply to discussion (solution)
All null values are treated as "false": 0, '0', '', false, null, array ()....Otherwise, it is regarded as "true"
When
1. Are all resource types true?
2.NULL type, all fake?
Reply to discussion (solution)
All null values are treated as "false": 0, ' 0 ', ' ', False,null,array () ....Conversely, it is considered "true."
When converted to Boolean, the following
PHP data type, true and false?
1. Are all resource types true?
2.NULL type, all fake?
Share to:
------Solution--------------------All null values are treated as "false": 0, ' 0 ', ' ', False,null,array () ....Conversely, it is considered "true.
Absrtact: The main purpose of this article is to help me to comb the context of JavaScript learning and use, most of it is only the collation of learning content, rather than original, I will post a reference link at the end of the article.6 of the
{Php Data type} PHP supports eight basic data types.
Four scalar types:Boolean (boolean) integer (integer) float (float type, also known as double) string (string)
Two composite types:Array (array) object (object)
There are two special
The use of UpdateData () function in VCUpdateData (FALSE) and UpdateData (TRUE) are the opposite processUpdateData (FALSE) is to update the values of the changes in the program to the controlUpdateData (TRUE) is to update the value entered in 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.