Skip to content

List tax names

Since the taxList() function returns an array of all the tax objects, you can iterate over the array to generate the list:

<?php
include('taxes.php');
foreach(taxList() as $key => $tax){
print "$tax->name<br>";
}
?>

Refresh your browser to see the output.