Absolute Beginners Guide to PHP Arrays

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! ]]
 •  0 comments  •  flag
Share on Twitter
Published on April 14, 2015 04:00
No comments have been added yet.