Array (PHP)

From Wiki @ Karl Jones dot com
Revision as of 13:57, 15 April 2016 by Karl Jones (Talk | contribs) (External links)

Jump to: navigation, search

This article describes arrays in PHP.

Description

...

Iterations

You can iterate through arrays in various ways.

Example using while():

<?php
    while (list($var, $val) = each($array)) {
        print "$var is $val\n";
    }
?>

See also

External links

Iteration: