- var_dump: documentation ( source)
- array_walk: documentation ( source)
<?php
$table_array = array();
$result = array('hi', 'hello', 'there');
array_walk($result, function(&$row, $my) {
//printf('%s ', $row);
$index = &$row;
$my[$index] = array();
});
var_dump($table_array);