Creating Arrays with Short Syntax in PHP, Short Syntax Ordered Array Creation Short Syntax Array PHP

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



Duration: 2:40
29 views
2


In this PHP Coding walkthrough we take a look at Creating Arrays with Short Syntax in PHP, Short Syntax Ordered Array Creation, and Short Syntax Array explained in PHP. This video is based on Codecademy's Learn PHP course, we are in the "Ordered Arrays" section, and the lesson is "Creating Arrays with Short Syntax". In the past lesson, we learned how to create an array using PHP. This required us to use the array keyword. While that was a valid way of creating an array, in this lesson we learn a shorter more conventional way of creating a PHP array. This way requires us to use opening and closing square brackets ( [ ] ) We first declare our array name, followed by the assignment operator ( = ). Then we enclose the data we want to store within opening and closing square brackets. Each piece of data within the square brackets must be separated by commas. Learning how to create arrays using short syntax is very helpful and is used by many developers. Learning to create ordered arrays using this syntax will make you more well-rounded as a PHP developer. Make sure to practice creating ordered arrays with short syntax as well as with long syntax to get used to both of them in case you encounter either on a project. Thanks for watching Creating Arrays with Short Syntax in PHP, Short Syntax Ordered Array Creation Short Syntax Array PHP.




Other Videos By We Will Code


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
2022-05-06Add and Change Array Elements, Add Elements to An Array in PHP, Changing Elements in An Array in PHP
2022-05-06Accessing an Element in an Array with PHP, How to Access Value in an Array with PHP, Access Array
2022-05-05How Printing Arrays Works in PHP, implode function, print_r function in PHP, View Array Values, PHP
2022-05-05Creating Arrays with Short Syntax in PHP, Short Syntax Ordered Array Creation Short Syntax Array PHP
2022-05-05Creating Arrays with array Keyword in PHP, Learn How To Create PHP Arrays, Ordered Arrays in PHP
2022-05-05What are Ordered Arrays in PHP, How Ordered Arrays Work, Ordered Arrays Explained, Understand Arrays
2022-05-04Review of PHP Built-In Functions, Intro to Built-In PHP Functions Learn PHP Fast and Easy Codecademy
2022-05-04Finding Functions in the PHP Documentation, How to Find the Right Function to Use in PHP, Codecademy
2022-05-03How to Read PHP Documentation, Reading PHP Documentation, How to Learn the PHP Documentation Easy
2022-05-03Generating Random Numbers in PHP, Random Number Function with PHP, Learn to Generate Random Numbers
2022-05-02Working With Number Functions in PHP, abs PHP Function for Calculate Absolute Value, Round Function
2022-05-02Working with Substrings in PHP, Substring Built-In Functions, Find Matching String in PHP Codecademy
2022-05-02Different Built-In PHP String Functions Explained, Learn PHP Functions for Strings, Codecademy PHP
2022-05-02New JLAB Talk Go Microphone, Most Affordable Good Quality Vocal Microphone, Clear Vocal Microphone



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