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.
<?php $atv = array("Honda", "Harley", "Kawasaki"); echo "I like " . $atv[0] . ", " . $atv[1] . " and " . $atv[2] . "."; ?>
Data Types In Php 7 Objects Arrays Null Resource Lesson 11 was last modified: October 29th, 2021 by
A1WEBSITEPRO Social Media Pages
Here are my social media pages, lets hook up!