TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Array
An array is a collection of items, encapsulated into a single, neat unit. Arrays are generally used to keep closely related items together; a list of colours, names, etc..

Usage is covered in detail in the PHP manual: http://php.net/types.array

Examples
PHP Code:
$colors = array('red''blue''green''yellow');
echo 
$colors[2]; // green

$person = array('name' => 'Peter''age' => '23''location' => 'Scotland');
echo 
$person['name']; // Peter 

All times are GMT. The time now is 02:36 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design