Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ternary operator php

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

$customer->user->fullName ? $customer->user->fullName : ''
  
isset($customer->user->fullName) ? $customer->user->fullName : ''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ternary #operator #php
ADD COMMENT
Topic
Name
3+7 =