Networking, Programming and Graphics Tutorials

PHP arrays tutorial [1/2]

Type: Code Networking, Programming and Graphics Tutorials
PHP arrays tutorial
Level: Beginner Networking, Programming and Graphics Tutorials 
PHP arrays tutorial
Date: 2007-Mar-16
PHP arrays tutorial
Visited: 937 times
PHP arrays tutorial
Rating: PHP arrays tutorial
PHP arrays tutorial
Author: Ivory Morhuld

This tutorial will show you how to work with arrays in PHP.

To create an array in PHP use the fowling code:

<?php
$array 
= array();
?>
Each array have one or more elements. Each element have key and value. Values can be arrays too.

Also when you define your array you can fill elements with values like shown in this example. Here the keys are: item, color and size and respective values for this keys are: ball, red and 20.

<?php
$array 
= array('item'=>'ball''color'=>'red''size'=>20);
?>
Networking, Programming and Graphics Tutorials - PHP arrays tutorial [1/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: C++dynamic multidimensional arrays tutorial  c++ arrays  c++ arrays  what is arrays in c++  c++ arrays  what is a Arrays?  С++ arrays  fill arrays in php  c++ arrays within a class  arrays within a class  php arrays size  "arrays in class" c++  "arrays within a class"  c++ arrays of objects  arrays of objects in C++  arrays within a class in c++  arrays within a class in c++  c++ arrays tutorials  c++ arrays of objects  c++ arrays of objects