Skip to content

Instantly share code, notes, and snippets.

@tony-landis
Created December 3, 2008 07:58
Show Gist options
  • Save tony-landis/31474 to your computer and use it in GitHub Desktop.
Save tony-landis/31474 to your computer and use it in GitHub Desktop.
<?php
$data = array(
array('company'=>'AIG', 'id'=>1, 'balance'=> '-$99,999,999,999.00'),
array('company'=>'Wachovia', 'id'=>2, 'balance'=> '-$10,000,000.00'),
array('company'=>'HP', 'id'=>3, 'balance'=> '$555,000.000.00'),
array('company'=>'IBM', 'id'=>4, 'balance'=> '$12,000.00')
);
$renderer = new ArrayToTextTable($data);
$renderer->showHeaders(true);
$renderer->render();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment