PHP 7 – Coalescing Operator is use as ternory operator and use of this variable you check a variable data. Such as-
//Coalescing operator
$var = $data??”;
//Ternory operator
$var = $data?$data:”;
SWCodes- PHP, JavaScript, CakePHP, Laravel, Angularjs2, Angularjs3, Angularjs4, HTML4, HTML5, CSS, CSS3, Nodejs, Codeignitor, Vuejs Interview Question and Answers for fresher and experience,Software and Web development
PHP 7 – Coalescing Operator is use as ternory operator and use of this variable you check a variable data. Such as-
//Coalescing operator
$var = $data??”;
//Ternory operator
$var = $data?$data:”;