mirror of
https://github.com/php/web-php.git
synced 2026-03-31 11:42:09 +02:00
20 lines
432 B
PHP
20 lines
432 B
PHP
<?php require "header.inc"?>
|
|
<h2>Arrays</h2>
|
|
<h3>Ordered arrays</h3>
|
|
<?example('<?php
|
|
$a[0] = 1;
|
|
$a[1] = "foo";
|
|
$a[] = 1.57;
|
|
?>'); ?>
|
|
<h3>Associative arrays</h3>
|
|
<?example('<?php
|
|
$catch_it[\'cat\'] = "mouse";
|
|
$catch_it[\'dog\'] = "cat";
|
|
?>');?>
|
|
<h3>Manipulating</h3>
|
|
<ul>
|
|
<li><B>Sorting:</B> sort(), rsort(), ksort(), usort()
|
|
<li><B>Traversal:</B> reset(), end(), next(), each(), current(), key()
|
|
</ul>
|
|
<?php require "footer.inc"?>
|