$query = \DB::select( 'id', 'username', 'group', 'email' ) ->from( 'users' ) ->where('id', '=', 1234 ) ->execute() ->as_array(); $query = $query[0]; print_r($query); array ( 'id' => '1234', 'username' => 'paulboco', 'group' => '100', 'email' => 'paulboco@foo.bar', )
$query = \DB::select( 'id', 'username', 'group', 'email' ) ->from( 'users' ) ->where('id', '=', 1234 ) ->execute() ->current();
It looks like you're new here. If you want to get involved, click one of these buttons!