2010-12-02 23:34:41 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
foreach ($table->getColumns() as $col) {
|
|
|
|
|
$entry = $col->getSqlString();
|
2017-08-02 16:06:56 -04:00
|
|
|
|
2010-12-02 23:34:41 +00:00
|
|
|
// collapse spaces
|
|
|
|
|
$entry = preg_replace('/[\s]+/', ' ', $entry);
|
|
|
|
|
|
|
|
|
|
// ' ,' -> ','
|
|
|
|
|
$entry = preg_replace('/[\s]*,[\s]*/', ',', $entry);
|
|
|
|
|
?>
|
|
|
|
|
<?php echo $entry ?>,
|
|
|
|
|
<?php } ?>
|