Networking, Programming and Graphics Tutorials

Working with PHP Arrays [1/2]

Type: Code Networking, Programming and Graphics Tutorials
Working with PHP Arrays
Level: Beginner Networking, Programming and Graphics Tutorials 
Working with PHP Arrays
Date: 2007-Mar-07
Working with PHP Arrays
Visited: 1383 times
Working with PHP Arrays
Rating: Working with PHP Arrays
Working with PHP Arrays
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 - Working with PHP Arrays [1/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: working with functions php  working folder in ftp  trillian webcam not working  working with array classes c++  remote desktop is not working in ccproxy  rdp-tcp plesk remote desktop not working  site preview not working in plesk  emergency repair disk xp not working  site preview is not working in plesk  site preview not working+plesk  working with files unix shell rename  desktop icon label transparet not working  vista remote desktop not working after changing port  c++ arrays  c++ arrays  what is arrays in c++  c++ arrays  fill arrays in php  c++ arrays within a class  arrays within a class