[ create a new paste ] login | about

Link: http://codepad.org/cxp0M0oL    [ raw code | output | fork ]

PHP, pasted on Jul 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 <?php

    $LibraryStatus = $ControlStatus = true;

    $arrLayout = array(
                 "section1" => array(
                 ($LibraryStatus ? array("wLibrary" => array("title"   => "XMBC Library",
                                                             "display" => "")) : false),
                 ($ControlStatus ? array("wControl" => array("title"   => "Control",
                                                             "display" => "")) : false)));
    
    print_r($arrLayout);

?>


Output:
 Array
(
    [section1] => Array
        (
            [0] => Array
                (
                    [wLibrary] => Array
                        (
                            [title] => XMBC Library
                            [display] => 
                        )

                )

            [1] => Array
                (
                    [wControl] => Array
                        (
                            [title] => Control
                            [display] => 
                        )

                )

        )

)


Create a new paste based on this one


Comments: