1024programmer PHP In php, isset() functions and examples

In php, isset() functions and examples

In php, the function and examples of isset()
————————————————–

Check if the variable is defined

——————————————— ——–

Determine whether the variable has been configured.
______________________________________________________________________________
isset
Determines whether the variable has been set.
Syntax: int isset(mixed var);
Return value: integer
Function type: PHP system function
Content description
This function is used to test variables Has it been set? If the variable already exists, a true value is returned. Otherwise a false value is returned.

Usage examples
<?php
$a = “test”;
echo isset($a); // true
unset($a );
echo isset($a); // false
?>

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/in-php-isset-functions-and-examples/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索