Hi guys, I have no idea if this is possible or if there is another way to do this, but any help would be appreciated. What I'm trying to do is disconnect arrays individually. So I have it ..
<?php $arrLayout = array( "section1" => array( "wLibrary" => array( "title" => "XBMC Library", "display" => "" ), "wControl" => array( "title" => "Control", "display" => "" ) ) ) ?>
I want this
<?php $LibraryStatus='true' $arrLayout = array( "section1" => array( if $LibraryStatus='true' ( "wLibrary" => array( "title" => "XBMC Library", "display" => "" ), else blank. if $ControlStatus='true' ( "wControl" => array( "title" => "Control", "display" => "" ) ) ) ?>
If its false, then it will also be empty. Is it possible to have if if inside an array controlling another array? If so, how will it work? This is just part of the array, there are more options and sections. I just took them for simplicity, since they are easy to scale, as soon as I understand how to do it once.
thanks
source share