First look at a special case:
Var_dump (0 = = ' false '), returns BOOL (true), PHP determines 0 equals any string, Var_dump (0=== ' false '), returns BOOL (false), and the congruent contains type and value to be equal.
Var_dump (0 = false),
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
For example, the following code: {code...} while ($ strue) {} cannot be displayed? Where can I use true ~~ For beginners, please take care of O (∩ _ ∩) O ~ Happy New Year ~ My own understanding is :! If 'false' is true, 1. The value is not equal to 2
In PHP because it is a weakly typed language, the different types of values can be implicitly converted, making false,null, ", 0, ' 0′ The comparison of these values is somewhat confusing, now summarizes:Equal judgment' = = NULL = = 0 = = False
The empty () function is used to determine whether a string is empty
As long as the variable is 0,null, ", False,empty () is judged to be true.
$num 1= '; $num 2=0; echo $num 1== $num 2; Echo ''; echo $num 1=== $num 2? ' 1 ': ' 0
PHP features: the command line mode starts with version 4.3.0. PHP provides a new type of cli sapi (Server Application Programming Interface, Server Application Programming Port) support, named CLI, command Line Interface, that is, Command Line
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
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
Workaround for Unserialize return False in PHP, Unserializefalse
In this article, we describe the solution of Unserialize return False in PHP, and share it for your reference. Here's how:
PHP provides serialize (serialization) and Unserialize
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.