I would like to echo the results of this array in a readable format “[id], [reason], how can I do that?
$s1 = "SELECT DISTINCT `id`, `reason` FROM wlp_$this->client.lu_unallocation_reasons";
$m1 = $this->conn1->_execute($s1);
while ($r1 = $this->conn1->_nextRow($m1)) {
$reasons[] = array('id' => $r1['id'], 'reason' => $r1['reason']);
}
What you need is a foreach loop.