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 )!