Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ternary operator

$customer->user->fullName ?? ''

$customer->user->fullName ? $customer->user->fullName : ''
  
isset($customer->user->fullName) ? $customer->user->fullName : ''
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #ternary #operator
ADD COMMENT
Topic
Name
6+2 =