Php manual, How to solve it

Source: Internet
Author: User
Php manual http://php.net/manual/zh/function.isset.php code &lt ;? Php $ var & nbsp ;=& nbsp; ''; // & nbsp; the result is & nbsp; TRUE, so the subsequent text will be printed. If & nbsp; php Manual
Http://php.net/manual/zh/function.isset.php

Code

$ Var = '';

// The result is TRUE, so the subsequent text is printed.
If (isset ($ var )){
Echo "This var is set so I will print .";
}

// In the following example, var_dump is used to output the return value of isset.
// The return value of isset ().

$ A = "test ";
$ B = "anothertest ";

Var_dump (isset ($ a); // TRUE
Var_dump (isset ($ a, $ B); // TRUE

Unset ($ );

Var_dump (isset ($ a); // FALSE
Var_dump (isset ($ a, $ B); // What is the role of B here? B does not seem to have been destroyed.

$ Foo = NULL;
Var_dump (isset ($ foo); // FALSE

?>

Var_dump (isset ($ a, $ B); // What is the role of B here? B does not seem to have been destroyed. Share: More

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.