| Recommend this page to a friend! | 
| Classes of Kjell-Inge Gustafsson | PcGen | docs/TernaryNullCoalesceMgr.md | Download | 
| 
 | |||||||||||||||||||||
|  Download [comment]: # (This file is part of PcGen, PHP Code Generation support package. Copyright 2020 Kjell-Inge Gustafsson, kigkonsult, All rights reserved, licence GPL 3.0) TernaryNullCoalesceMgrThe  * The ternary operator expression 'expr1 ? expr2 : expr3' evaluates to expr2 if expr1 evaluates to TRUE and expr3 if expr1 evaluates to FALSE. * The ternary operator expression 'expr1 ?: expr3' * The (PHP7+) null coalescing operator expression 'expr1 ?? expr2' In particular, this operator does not emit a notice if the left-hand side value does not exist, just like isset(). This is especially useful on array keys. * Expression defind as one of simple expression i.e. constant, variable or class property (array) method/function invoke, opt with arguments, no support for dynamic methodNames, $this->{$method} 
 TernaryNullCoalesceMgr MethodsInherited [Common methods] 
 
 
 
 
 Example : Result : TernaryNullCoalesceMgr::factory( 'var1', null, 'var3' )->toString(); Example : Result :  |