Arrays are wonderful ways to organize and use data in PHP.
Quite simply, an array is a list.
Here’s a quick example of an array of types of transportation:
{codecitation}$transportation = array( ‘Planes’, ‘Trains’, ‘Automobiles’ );{/codecitation}
For readability you can write it like this as well:
{codecitation}$transportation = array(
‘Planes’,
‘Trains’,
‘Automobiles’
);{/codecitation}
[[ This is a content summary only. Visit
http://OSTraining.com for full links, other content, and more! ]]
Published on April 14, 2015 04:00