View

<input name="myarray['username']" type="text" />
<input name="myarray['another_input']" type="text" />

Controller

$arrPost = $this->input->post('myarray');
print_r(arrPost);

Produces

array
(   [username] => value,
[another_input] => another value
)