1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)

Data Types In Php 7 Objects Arrays Null Resource Lesson 11

Data Types in PHP7 Arrays

Arrays consist of a block of data in variables. These variables hold several different types of data. Consider this example. Since I love to ride ATV’s I created an array with the different brands of ATV’s. After that I echoed them out in my PHP script to show on the page.

This is a very simple array. We will get into more complex arrays as these tutorials progress.

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂
$atv = array("Honda", "Harley", "Kawasaki");
echo "I like " . $atv[0] . ", " . $atv[1] . " and " . $atv[2] . ".";

php7 arrays

Data Types In Php 7 Objects Arrays Null Resource Lesson 11 was last modified: March 10th, 2019 by Maximus Mccullough

Subscribe To My YouTube Channel:

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips


Cool People Share:

Pages:Previous 1 2 3 4 Next

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.