Skip to content

Instantly share code, notes, and snippets.

@philsinatra
Created May 6, 2014 12:53
Show Gist options
  • Save philsinatra/9a1bc5884748925f6855 to your computer and use it in GitHub Desktop.
Save philsinatra/9a1bc5884748925f6855 to your computer and use it in GitHub Desktop.
Multidimensional Array Output
<?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