Tutorials and web chats for the How To Code Well Youtube channel
How To Code Well Tutorials and Web Chats
PHP Array Basics Create, Unset, Inspect
6 liked this
In this How To Code Well PHP video tutorial I explain what a PHP array is and demonstrate create a PHP array, unset elements from the array and inspect the contents of the PHP array.
This is a great introduction PHP and the video will help you to learn what PHP arrays are and how to use them
A PHP array is ordered map of key value pairs. It is essentially a collection of data values where each value has a corresponding key.
This tutorial covers the following points:
- Create a PHP array using both long and short hand methods
- Remove a value from the PHP array using the unset method
- How to add a new value to a existing PHP array
- How to inspect a PHP array using print_r