PHP Associative Arrays

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:01
    Part 1.
  • 0:02
    PHP Associative Arrays with Leanna Pelham.
  • 0:08
    LEANNA PELHAM: Let's leave our array of pets behind
  • 0:10
    and focus on one wonderful pet, Pancake the bulldog.
  • 0:15
    So far we're just printing out the name of each pet,
  • 0:17
    but Pancake has too much personality for that
  • 0:20
    and deserves her own full bio.
  • 0:22
    We'll print bios for every pet eventually,
  • 0:24
    but let's just focus on Pancake first because she's awesome.
  • 0:28
    I know a lot of information about Pancake,
Loading ...

PHP Associative Arrays

Loading...

We have a basic array for our pets, but we can make these much more friendly by specifying our own array keys. We'll do just that, and we'll also see how to add new items to an already existing array, without having to go in and manually add it to the array in the code.

Downloads: 
Log in or sign up to download companion files.
Additional resources: