The usage of the select_array():
$value = array( 'username', 'email', 'firstname' );
$result = DB::select_array( $value ) ->from( 'user' ) ->where( 'userid', '=', '1' ) ->execute() ->as_array();
print_r( $result[0] );
The usage of the select_array():
$value = array( 'username', 'email', 'firstname' );
$result = DB::select_array( $value ) ->from( 'user' ) ->where( 'userid', '=', '1' ) ->execute() ->as_array();
print_r( $result[0] );
Try with this might be it helps you.
$value = array(
array('username', 'uname'),
array('email', 'mail'),
array('firstname', 'fname')
);
DB::select_array( $value )
->from( 'user' )
->where( 'userid', '=', '1' )
->execute()
->as_array();
take a look on select_array