Hi guys I have no idea if this is possible or if there is another way of doing it but any help would be appreciated. What I\'m trying to do is turn off arrays individually.
Yes, this is possible using a certain shorthand:
array(
($LibraryStatus ? array("wLibrary" => array("title" => "XMBC Library",
"display" => "")) : false),
($ControlStatus ? array("wControl" => array("title" => "Control",
"display" => "")) : false)));
print_r($arrLayout);
?>
It works like this:
if($a == $b){ echo 'a'; }else{ echo 'b'; }
is equal to
echo $a == $b ? 'a' : 'b';
If you use this shorthand it will always return the output, so you can put it between brackets and put it inbetween the array.
http://codepad.org/cxp0M0oL
But for this exact situation there are other solutions as well.