Skip to content

Instantly share code, notes, and snippets.

@Martin1982
Created March 12, 2012 19:27
Show Gist options
  • Save Martin1982/2024132 to your computer and use it in GitHub Desktop.
Save Martin1982/2024132 to your computer and use it in GitHub Desktop.
Associative arrays
<?php
$categories = array(
'first' => 'my first category',
'second' => 'new category',
'third' => 'etc...'
)
// Show the second category
echo "The second category is " . $categories['second'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment