This is what I have:
'options' => array(
'active' => (count($panels)>=2) ? false : NULL,
'collapsible' => true,
'icons' => null,
'header' => "dt"
),
I assumed that the null on the value will be enough. However, the effect we wish will only occur, if and only if, all key=>value pair don't appear on the array.
How can I make this key=>value pair to appear:
'active' => false;
If count($panels)>=2 and to not appear at all, if that's not the case?
Is there an clear, easy and understandable way to achieve this, or should I play with array merges and stuff like that?
Please advice