Difference between revisions of "Array (PHP)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→External links) |
Karl Jones (Talk | contribs) |
||
Line 1: | Line 1: | ||
This article describes [[Array data structure|arrays]] in [[PHP]]. | This article describes [[Array data structure|arrays]] in [[PHP]]. | ||
− | |||
− | |||
− | |||
− | |||
== Iterations == | == Iterations == | ||
Line 33: | Line 29: | ||
* http://docstore.mik.ua/orelly/webprog/pcook/ch04_05.htm | * http://docstore.mik.ua/orelly/webprog/pcook/ch04_05.htm | ||
− | |||
[[Category:Data structures]] | [[Category:Data structures]] | ||
[[Category:PHP]] | [[Category:PHP]] |
Latest revision as of 11:56, 21 April 2016
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: