Ver original$cols2 = array();while($res_abs = mysql_fetch_row($sql_abs)){ $cols2[$res_abs[0]] = array('justification' => 'left'); } var_dump($cols2);