PHP Associative Arrays Numerical Keys Explained, How Do Numerical Keys Work with Associative Arrays

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=lA2bC0tNkIo



Duration: 6:25
117 views
3


In this PHP programming video, we look at PHP Associative Arrays Numerical Keys Explained, How Do Numerical Keys Work with Associative Arrays. This is based on Codecademy's Learn PHP course. We are in the Associative Arrays section, this lesson is Numerical Keys. In this lesson, we learned that when we create ordered arrays in PHP, the numerical key association is done for us. Our first element is associated with key 0, the second element with key 1, and so on! The thing is, ordered arrays are the same structure as associative arrays, we are able to mix and match, though it is recommended that we treat them as separate data types. We are told to only use empty square bracket syntax (and/or functions like array_push() ) when we use ordered arrays. Learning to use numerical keys in associative arrays is key to becoming a good PHP developer. Practice using numerical keys with your associative arrays to make sure you understand how numerical keys work in associative arrays. Practicing accessing elements with numerical keys to becoming a great developer of PHP. Thanks for watching PHP Associative Arrays Numerical Keys Explained, How Do Numerical Keys Work with Associative Arrays.

Sponsored by: https://theprogrammercoach.com




Other Videos By We Will Code


2022-06-10Yugioh Maximum Gold El Dorado Unboxing
2022-06-04PHP in HTML, How to embed PHP scripts within HTML documents, how we can use PHP within HTML Page
2022-06-02PHP and HTML, What is the Back-End, Web Server, Database, and Application Servers in PHP Explained
2022-05-28Yugioh Codebreaker Starter Deck With Absolute Beginners Guide, How to Play Yugioh, 2022 Starter Deck
2022-05-27PHP and HTML Introduction, Explain Front-End Back-End Differences, How PHP And HTML Work Together
2022-05-27PS5 Tony Hawk Pro Skater 1 and 2 Gameplay, How To Reach 1 million Score Easy
2022-05-25Introduction to PHP and HTML, Understanding The Differences Between HTML and PHP Language, Learn PHP
2022-05-24PHP Associative Arrays Review, PHP Associative Array Explained, Codecademy Review Associative Arrays
2022-05-20How PHP Assign by Value Works, What is PHP Assign by Reference, Learn Assign by Value and Reference
2022-05-18PHP Joining Arrays with Union Operator, How to Join Arrays Using the Union Operator, PHP Join Arrays
2022-05-16PHP Associative Arrays Numerical Keys Explained, How Do Numerical Keys Work with Associative Arrays
2022-05-13Associative Arrays, Changing and Removing Elements in PHP, unset function to Remove key-value pairs
2022-05-11Accessing Elements in an Associative Array, Adding Elements in an Associative Array, Codecademy PHP
2022-05-10Printing Associative Arrays, How to Log Out an Associative Array, Use implode and print_r function
2022-05-09Learn PHP Associative Arrays Syntax, Understanding PHP Associative Arrays, Key Value Pairs, PHP Maps
2022-05-08Introduction to PHP Associative Arrays, PHP Data Structures, What are Associative Arrays Explained
2022-05-08Learn PHP, Ordered Arrays Review, Understanding PHP Ordered Arrays, Review of PHP Ordered Arrays
2022-05-08How to Access PHP Nested Arrays, Accessing Nested Arrays in PHP, Access Element in Nested Arrays PHP
2022-05-08PHP, Remove First Element of Array with array_shift, Add Element to Beginning of Array in PHP, Guide
2022-05-08New MacBook Pro 2022, New Apple MacBook Pro Unboxing, New MacBook Pro Reveal, Unified Memory, SSD
2022-05-06PHP, Add Element to End of Array, array_push Method, Remove Element in Array with array_pop Method



Tags:
Coding
Learn PHP
PHP
Programming
Server-side
back-end
code tutorial
tutorials