This tutorial will show you how to work with arrays in PHP.
To create an array in PHP use the fowling code:
![]() |
||||||||||||||||
|
|
Working with PHP Arrays
This tutorial will show you how to work with arrays in PHP.
To create an array in PHP use the fowling code:
<?php
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
You can use print_r() function to dump the array
Array
Next Tutorials
Post Comment |
Need a specific tutorial? Do not hesitate and submit a request! |
||||||||||||||
|
Home | Sitemap |
Terms & Privacy
© ONLINEHOWTO.net 2006-2010 |
||||||||||||||||