News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Introduction to Arrays and Hashes in PHP - The ABC's of PHP Part 7
April 30, 2009 @ 07:57:08

PHPBuilder.com has posted the seventh part of their "ABCs of PHP" series - a look at arrays and hashes.

An array is a list of a certain variable type, where each item in the list can be referenced by a unique index number, usually starting at 0. [...] Like any other variable type, PHP will automatically define a variable type and set it up for you when you start using it, however in most cases (and it's good practice) you should usually pre-declare your intention to use an array, especially if you don't know in advance what your going to be storing in it.

The article talks about what arrays are, how to create them, manipulating them with functions like array_splice and creating subarrays.

0 comments voice your opinion now!
introduction beginner array hash variable use subarray manipulate


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API

SitePoint PHP Blog: Getting Started with PHP Extension Development via PHP-CPP

NetTuts.com: Dates and Time - The OOP Way

Zend Developer Zone: Manipulating Images with PHP and GraphicsMagick

Brandon Savage: Private Methods Considered Harmful ("Do This, Not That" Excerpt)


Community Events

Don't see your event here?
Let us know!


interview opinion laravel5 extension framework php7 series introduction library community voicesoftheelephpant example api unittest laravel release language podcast wordpress version

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework