Android programmers learn PHP development (3)-True and False loop variables-PhpStorm

Source: Internet
Author: User
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 a Java Foundation will not be too hard to learn.

 ";}/** The Print result of the for loop above is as follows: iwanghang0 iwanghang1 iwanghang2 iwanghang3 iwanghang4 iwanghang5 * // *** var_dump print the type and value of a variable * See the following three examples */var_dump ($ name); // print the result: string (9) "iwanghang" echo"
X = ". $ x ."
"; // Print the result: x = 6 var_dump ($ x); // print the result: int (6) echo"
"; Var_dump (666); // print the result: int (666) echo"
";/*** Determine whether the isset is true or false */$ nameInit = isset ($ name); var_dump ($ nameInit); // print the result: bool (true) echo"
"; $ NameInit1 = isset ($ name1); var_dump ($ nameInit1); // print the result: bool (false) echo"
";/*** Boolean value (true or false) judgment */if (isset ($ name) {echo" true
"; // Print the result: true} else {echo" false
";} If (isset ($ name1) {echo" true
";} Else {echo" false
"; // Print the result: false}/*** null to judge */if (empty ($ name) {echo" null
";} Else {echo" not empty
"; // Print the result: not empty} if (empty ($ name1) {echo" null
"; // Print result: null} else {echo" not empty
";}/*** X equals to 6 * empty ($ x) not empty * var_dump (empty ($ x )) returns the boolean value false ** x1 does not exist * empty ($ x1) is empty * var_dump (empty ($ x1) returns the boolean value true */echo $ x."
"; // Print the result: 6 echo" ". empty ($ x )."
"; // Print the result: var_dump (empty ($ x); // print the result: bool (false) echo"
------
"; Echo" ". empty ($ x1 )."
"; // Print the result: 1 var_dump (empty ($ x1); // print the result: bool (true)

The above is the PHP development for Android programmers (3)-The True and False loop variables are not empty-PhpStorm content. For more information, please follow the PHP Chinese network (www.php1.cn )!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.