Skip to content

Instantly share code, notes, and snippets.

@jonsherrard
Last active June 28, 2016 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonsherrard/aeeaf0639b5dc8a0f1c4b55aa73f3e99 to your computer and use it in GitHub Desktop.
Save jonsherrard/aeeaf0639b5dc8a0f1c4b55aa73f3e99 to your computer and use it in GitHub Desktop.
// Initial state of array
$descriptions = array(
array(
'author' => 'josh',
'bio' => 'Donec vel iaculis urna. Sed.'
),
array(
'author' => 'sarah',
'bio' => 'Vestibulum eu consectetur ex. Aliquam.'
),
array(
'author' => 'sarah',
'bio' => 'Suspendisse et orci orci. Nullam.'
),
array(
'author' => 'tom',
'bio' => 'Aenean eget auctor metus. Ut.'
)
);
// Intermediate step
// Final state of array
$descriptions = array(
array(
'author' => 'josh',
'bio' => 'Donec vel iaculis urna. Sed.'
),
array(
'author' => 'sarah',
'bio' => 'Vestibulum eu consectetur ex. Aliquam.Suspendisse et orci orci. Nullam.'
),
array(
'author' => 'tom',
'bio' => 'Aenean eget auctor metus. Ut.'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment