title: How to retrieve a result set from a raw query as an array instead of an object in Laravel 3
body: <p>By default, Laravel's raw query methods return results as arrays of stdClass objects:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 1
              [username] =&gt; admin
              [password] =&gt; admin123
              [email] =&gt; admin@admin.com
              [created_at] =&gt; 2012-12-06 18:57:19
              [updated_at] =&gt; 2012-12-06 00:00:00
          )
  
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 2
              [username] =&gt; userna
              [password] =&gt; user
              [email] =&gt; user@gmail.com
              [created_at] =&gt; 2012-12-06 00:00:00
              [updated_at] =&gt; 2012-12-05 00:00:00
          )
  )
  </code></pre>
  
  <p>The question is how to have Laravel return an array of Arrays instead:</p>
  
  <pre><code>   Array
      (
          [0] =&gt; Array
              (
                  [id] =&gt; 1
                  [username] =&gt; admin
                  [password] =&gt; admin123
                  [email] =&gt; admin@admin.com
                  [created_at] =&gt; 2012-12-06 18:57:19
                  [updated_at] =&gt; 2012-12-06 00:00:00
              )
  
          [1] =&gt; Array
              (
                  [id] =&gt; 2
                  [username] =&gt; userna
                  [password] =&gt; user
                  [email] =&gt; user@gmail.com
                  [created_at] =&gt; 2012-12-06 00:00:00
                  [updated_at] =&gt; 2012-12-05 00:00:00
              )
      )
  </code></pre>