Compute a tax (PHP)
You don’t need a tax object or taxList() to perform a calculation. Just call the top-level compute function:
<?phpinclude('taxes.php');$amt = compute('OH', // tax name 2000, // gross earnings 0, // ytd earnings $filingSingle, // filing status (0=single) 0, // exemptions 1, // state exemptions 12); // pay periods per year (12=monthly)print "Tax amt: $amt<br>";?>
Refresh your browser to see the output.