<?php $a = ['baz' => 7]; $b = (string) $a['foo'] ?? 'bar'; $c = (string) $a['baz'] ?? 'some thing else'; $d = (string) ($a['foo'] ?? 'bar'); var_dump($b, $c, $d);
You have javascript disabled. You will not be able to edit any code.