Array (PHP)

From Wiki @ Karl Jones dot com
Jump to: navigation, search

This article describes arrays in PHP.

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: