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 . ", " . $atv . " and " . $atv . "."; ?>
Please like, share and subscribe.
I hope you enjoyed the article. If I was able to help you please consider a tip for the content.
One Time Tip