Created
July 24, 2013 16:05
-
-
Save lucasstark/6071982 to your computer and use it in GitHub Desktop.
Example of the problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$nav = array( | |
array( | |
'item1', | |
'item2', | |
'item3' | |
), | |
array( | |
'item1', | |
'item2', | |
'item3' | |
), | |
array( | |
'item1', | |
'item2', | |
'item3', | |
'item4', | |
'item5', | |
'item6', | |
), | |
array( | |
'item1', | |
'item2', | |
'item3', | |
'item4', | |
'item5', | |
'item6', | |
) | |
); | |
//The best way to diviy up the array above is to take position array[0], | |
//and array[1] and put those in column 1. | |
//Take array[2] and put in column 2, take array[3] and put in column 3 | |
$nav = array( | |
array( | |
'item1', | |
'item2', | |
'item3', | |
'item4', | |
'item5', | |
'item6', | |
), | |
array( | |
'item1', | |
'item2', | |
'item3' | |
), | |
array( | |
'item1', | |
'item2', | |
'item3' | |
), | |
array( | |
'item1', | |
'item2', | |
'item3', | |
'item4', | |
'item5', | |
'item6', | |
) | |
); | |
//The best way to diviy up the array above is to take position | |
//array[0] for the colum 1. | |
//array[1] and array[2] put those in column 2. | |
//array[3] and put in column 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment