//ads:
?>
Why the name of trucks are same in 2nd and 3rd record of company data retrieval?
PHP Snippet 1:
$ta = array();
foreach ($Trucks as $truckname)
{
$object = new Truck();
$object = $truckname->getName();
$ta[] = $object;
}