Using Optional Chaining for checking for existence of nested Object key
In PHP we can do use isset() for checking the existence of a deeply nested array's key since the beginning of time : <?php $p1 = "a9bedbd81019b877"; $p2 = "47bd5f64f7be5578"; $obj = [ 'people' => [ $p1 => [ 'first...
Sep 7, 20221 min read24