Skip to content

List state tax names

Use the type property to select only state taxes, which have a type of ā€˜Sā€™:

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

For more information on the tax types, see the TaxType Property.