Voting

: two minus zero?
(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