Home Backend Development PHP Tutorial isset function of PHP

isset function of PHP

Jun 23, 2016 pm 02:36 PM

简介:这是isset function of PHP的详细页面,介绍了和php,php, isset isset function of PHP有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=347709' scrolling='no'>

isset

(PHP 4, PHP 5)

isset ― Determine if a variable is set and is not NULL

检查参数的值是否已经设置并且不为NULL。

Description

bool isset ( mixed $var [, mixed $... ] )

Determine if a variable is set and is not NULL .

If a variable has been unset with unset() , it will no longer be set. isset() will return FALSE if testing a variable that has been set to NULL . Also note that a NULL byte ("\0" ) is not equivalent to the PHP NULL constant.

检查参数的值是否已经设置并且不为NULL。

如果参数调用unset()而不被设置,那它以后也不会被设置。如果参数设置为NULL,调用isset()会返回FALSE。而且NULL字节不等同PHP中NULL的常量值。

If multiple parameters are supplied then isset() will return TRUE only if all of the parameters are set. Evaluation goes from left to right and stops as soon as an unset variable is encountered.

如果想多个参数调用isset()返回TRUE,只有这些函数都被设置过。函数会从左向右检查所有的参数,一直遇到没有设置的或者参数集末尾。

Parameters

var The variable to be checked. 被检查的参数。

... Another variable ... 另外的参数。

Return Values

Returns TRUE if var exists and has value other than NULL , FALSE otherwise.

假如参数存在或者不为空返回TRUE,其他返回FALSE。

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/347709.html pageNo:3
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

11 Best PHP URL Shortener Scripts (Free and Premium) 11 Best PHP URL Shortener Scripts (Free and Premium) Mar 03, 2025 am 10:49 AM

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel Working with Flash Session Data in Laravel Mar 12, 2025 pm 05:08 PM

Working with Flash Session Data in Laravel

Introduction to the Instagram API Introduction to the Instagram API Mar 02, 2025 am 09:32 AM

Introduction to the Instagram API

Simplified HTTP Response Mocking in Laravel Tests Simplified HTTP Response Mocking in Laravel Tests Mar 12, 2025 pm 05:09 PM

Simplified HTTP Response Mocking in Laravel Tests

Build a React App With a Laravel Back End: Part 2, React Build a React App With a Laravel Back End: Part 2, React Mar 04, 2025 am 09:33 AM

Build a React App With a Laravel Back End: Part 2, React

cURL in PHP: How to Use the PHP cURL Extension in REST APIs cURL in PHP: How to Use the PHP cURL Extension in REST APIs Mar 14, 2025 am 11:42 AM

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon 12 Best PHP Chat Scripts on CodeCanyon Mar 13, 2025 pm 12:08 PM

12 Best PHP Chat Scripts on CodeCanyon

Notifications in Laravel Notifications in Laravel Mar 04, 2025 am 09:22 AM

Notifications in Laravel

See all articles