Skip to content

Hello World

Rather than a single TaxControls object, the PHP table supplies an array of instantiated tax objects, returned by the function ‘taxList()‘. This array has a key value of the tax name, pointing to the instantiated object:

Replace the contents of the index.php file with the following code:

<?php
include('taxes.php');
$taxlist = taxList();
// federal income tax:
$t = $taxlist['MD'];
print "name: $t->name<br>title:$t->title<br>type:$t->type<br>";
?>

Refresh your browser to see the output.