php data type NULL

伊谢尔伦
Release: 2016-11-24 13:54:06
Original
1094 people have browsed it

The special NULL value indicates that a variable has no value. The only possible value of type NULL is NULL.

A variable is considered NULL if:

is assigned a value of NULL.

has not been assigned a value yet.

is unset().

Syntax

The NULL type has only one value, which is the case-insensitive constant NULL.

<?php
$var = NULL;
?>
Copy after login

See is_null() and unset().

Convert to NULL

Using (unset) $var Converting a variable to null will not delete the variable or unset its value. Just returns NULL value.


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template