The PHP Blog was the first of its kind from our wonderful team, but today we have an addition to the family with the launch of the iPhone SDK blog!
The iPhone SDK Blog will bring you regular tutorials on many aspects of developing applications for the iPhone, be sure to check them out and add them to your bookmarks!
This post is a part two of the first post on the basics of arrays. Today we’ll look at some useful functions built for using with arrays that come as standard with PHP and some more advanced techniques.
One thing you can’t escape in your PHP journey is arrays, at one point or another they’ll crop up in your simple script, your project or anything in between. Arrays are relatively to simple to use, but can be a bit daunting for people new to programming or just PHP.
Today we’ll look at arrays from a simple array, to a key and value array, finally we’ll have a look at expanding on arrays with a multi-dimensional array.
More often than not, new developers tend to repeat a lot of code in their websites and web apps instead of recycling them. Functions give you the freedom to alter code all throughout your website or web app in one place, both convenient and it helps avoid errors!
We’ll look at why functions should be used, where they should be used, how they should be used and some special techniques you should be using.