Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 131 Bytes
<?php
#bad
if(isset($map['key']){
$value = $map['key'];
}else{
$value = 'Default';
}
#good
$value = $map['key'] ?? 'Defualt';
You can’t perform that action at this time.