update page now
PHP 8.1.34 Released!

Voting

: min(seven, two)?
(Example: nine)

The Note You're Voting On

bdechka at yahoo dot ca
18 years ago
The above code works better this way.

<?php
function reduceToTable($html, $p) {
   $html .= "<TR><TD><a href=\"$p.html\">$p</a></td></tr>\n";
   return $html;
}

$list = Array("page1", "page2", "page3");

$tab = array_reduce($list, "reduceToTable");
echo "<table>".$tab . "</table>\n";
?>

<< Back to user notes page

To Top