I have a table like this:
id | username | email
---+----------+----------------
1 | John | [email protected]
17 | Mary | [email protected]
And I want to get a result like this:
array(
1 => array(
username => 'John',
email => '[email protected]'
),
17 => array(
username => 'Mary',
email => '[email protected]'
)
);
Is it possible to do with built-in functions in CodeIgniter?