Skip to content

Instantly share code, notes, and snippets.

@aerith
Created September 9, 2009 18:57
Show Gist options
  • Save aerith/183976 to your computer and use it in GitHub Desktop.
Save aerith/183976 to your computer and use it in GitHub Desktop.
<?php //>
$item = "hoge";
$values = array(
array(
'id' => 1,
'title' => 'title1',
),
array(
'id' => 2,
'title' => 'title2',
),
array(
'id' => 3,
'title' => 'title4',
),
array(
'id' => 4,
'title' => 'title4',
),
array(
'id' => 5,
'title' => 'title5',
),
);
foreach ( $values as $item ) {
}
print_r($item);
# =>
/*
Array
(
[id] => 5
[title] => title5
)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment