Data Types In Php 7 Objects Arrays Null Resource Lesson 11

Subscribe

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] . ".";
?>

 

php7 arrays

Data Types In Php 7 Objects Arrays Null Resource Lesson 11 was last modified: October 29th, 2021 by Maximus Mccullough

DATA TYPES IN PHP7 HOW THEY ARE USED

Pages:Previous 1 2 3 4 Next

Leave a Reply

Your email address will not be published.

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