Join Kevin Skoglund for an in-depth discussion in this video Associative arrays, part of PHP Essential Training.
- [Instructor] PHP has another type of array,…called an associative array,…and it's important for us to learn how to use both types,…and to understand the difference between them.…An associative array is an object-indexed…collection of objects.…Now it's very similar to what we saw…for the definition of a regular array.…But notice that it doesn't say that it's ordered anymore.…And instead of being integer-indexed, it is object-indexed.…That is they're going to be indexed by a label of some sort.…Let's remember the expanding file folder metaphor,…that I gave you when we were talking about arrays.…Associative arrays are similar,…but they work more like hanging file folders.…
They're not in any certain order,…and they can be rearranged.…Each of those file folders is going to have a label on it.…And that's how we're going to find information.…Since we won't know what order the information is in,…instead we will thumb through those file folders…until we find the label that matches what we're looking for.…Instead of saying our phone bill is in pocket one,…
- What is PHP?
- Embedding PHP code on a page
- Inserting code comments
- Variables, strings, arrays, and Booleans
- If, else, and elseif statements
- While and for loops
- User-defined functions
- Function arguments and return values
- Debugging and troubleshooting
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
1. PHP Overview
2. First Steps
3. Explore Data Types
4. Control Structures: Logical Expressions
5. Control Structures: Loops
6. User-Defined Functions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.