Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php code to check if variable is null
Rangu
Programming language:
PHP
2021-05-21 06:59:51
0
Q:
php code to check if variable is null
Kelvin
Code:
PHP
2021-06-01 15:00:33
if(empty($var1)){ echo 'This line is printed, because the $var1 is empty.'; }
5
Tags
code
php
variable
check
var
Related
check if string is number or not php
php check if variable exists
php is numeric
php check for empty string
laravel where is null
php null
php if empty
check if variable is set and not empty laravel
php null coalesce
is empty php
php check for null
null php
check if value is not null in db laravel
remove null values from array php
is null php
php check empty variable
check null in_array php
null condition in php
New to Communities?
Join the community