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, 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
Since PHP was generated in 1994, its syntax is mixed with C, Java, Perl and some of his own programming syntax. Since PHP was generated in 1994, its syntax is mixed with C, Java, Perl and some of his own programming syntax.
Therefore, students with
For example, what exactly does true and false in {code...} PHP correspond? For example
Var_dump (true =-1); // true
What exactly does true and false in PHP correspond?
Reply content:
For example
Var_dump (true =-1); // true
What exactly does
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),
Php does not need regular expressions to verify true and false ID cards. Let's look at the code directly. a simple PHP class copies the code as follows :? Php $ IDCardnewIDCard (); var_dump ($ IDCard: isCard ($ _ GET [card]); you can directly view
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.