title: What is the difference between fetch() and fetchAll() in PDO query?
body: <p>I'm confused with using <code>fetch()</code> and <code>fetchAll</code> in a PDO statement. I went through the <code>php.net</code> manual and that made it more confusing. Even went through the suggestions provided in<br>
  stackoverflow.  If anyone could help me understand it the easy way, it would be great.</p>
  
  <p><strong>For example</strong> </p>
  
  <pre><code>    $result = $stmt-&gt;fetchAll(PDO::FETCH_OBJ);
      $result = $stmt-&gt;fetch(PDO::FETCH_OBJ);
  </code></pre>