Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

isset in php

//with new features in new PHP versions like 7
//you can simplify writing of isset in the following way,
//old way of isset to display name if name variable is not null
echo isset($name) ? $name : "no name"
 //new and simple way with null coalescing operator
echo $name ?? "no name"
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #isset #php
ADD COMMENT
Topic
Name
7+9 =