how to order these twelve menus in columns of 4

0

How could I order my 12 menus in columns of 4 my code is this

$men1=0;     
if ($men1==0) {
    echo'<ul>';                     
        echo'<li>';    
        foreach($Menu as $key => $value){    
            $men1 ++;

            $string2=$key;
            $men=explode("?", $string2);                                    

            echo $men1;
            echo " <h1><img src='$men[0]'/>$men[1]</h1>";

            foreach ($value as $value1 => $valueSubmenu) {

                $string = $valueSubmenu ;      
                $arr=explode("?",$string); 

                if ($arr[2]==0) {
                    echo"<br><a href='$arr[1]'>$arr[0]</a><br>";
                }else{

                echo"<br>
                   <a style='cursor: pointer;'onclick=cambiarContenidos('#contenidos','$arr[1]');>$arr[0]</a>
                   <br>";
                }

           }     

    }    

}

echo'</li>';
echo'</ul>';

print this

1

Collection

Online catalog

2

Exhibition

Pieces in temporary exhibition

Activities and Goals Matrix

Publications

Overtime

so with the twelve I would like you to print them in columns of 4.

    
asked by carlos becerra 27.09.2018 в 22:24
source

0 answers