Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php null coalesce

// if $_POST['name'] doesn't exist $result will equal to John
$result = $_POST['name'] ?? 'John';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #null #coalesce
ADD COMMENT
Topic
Name
1+2 =