News Feed
Sections




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

DevShed:
The Switch Statement and Arrays
January 07, 2008 @ 12:50:00

DevShed continues their series looking at some of the fundamentals of working with PHP in this new tutorial posted today. It looks at one of the flow control statements the language has to offer and a very useful data structure - the switch statement and arrays.

In our last exciting adventure (back in early November), we braved crocodiles, ravenous editors, most of the PHP statements, and beginning loops. In this edition we'll cover the final statement, the Switch, and discuss arrays. So sit back, order your R2D2 robot to bring you a cold, frosty Jolt Cola, and let's get cracking.

They start with a simple example of a switch statement (to echo out strings) and follow it with a detailed description of the different sorts of arrays - numeric indexed, associative and multidimensional versions.

1 comment voice your opinion now!
tutorial switch flow control array numeric associative multidimensional tutorial switch flow control array numeric associative multidimensional


blog comments powered by Disqus

Similar Posts

TechChorus Blog: Create RESTful Applications Using The Zend Framework - Part II: Using HTTP Response

Lorna Mitchell's Blog: Retrieving Data from Google Analytics API using PHP

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD

PHP-GTK Blog: How to: PHP 5.3 with PHP-GTK and Cairo on Linux Mint 9

Enrico Zimuel's Blog: PHP session sharing using Zend Server CE and MS SQL Server


Community Events





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


conference series podcast list community language release symfony introduction version interview opinion laravel framework security tool artisanfiles voicesoftheelephpant composer library

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