How can I conditionally add 'b' => 'xyz' in the array below, in the array() statement?
'b' => 'xyz'
$arr = array('a' => abc)
The ternary operator doesn't let me do it.
$a = array('a' => 'abc') + ($condition ? array('b' => 'xyz') : array());