Created
May 6, 2014 12:53
-
-
Save philsinatra/9a1bc5884748925f6855 to your computer and use it in GitHub Desktop.
Multidimensional Array Output
This file contains hidden or 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
<?php | |
$items = array( | |
array('X0001','Title'), | |
array('X0002','Title or whatever') | |
); | |
for ($i = 0; $i < count($items); $i++) { | |
$output = $items[$i][0] . ': ' . $items[$i][1] . '<br>'; | |
echo $output; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment