title: Can't read CLOB into string... sometimes
body: <p>I have an array of CLOB datatypes.  In my sample data, there are two items in the array.  The array is embedded in a FOR loop that will loop until all of the data is read from the array (in this case, twice).  I have a function that reads the CLOB data into a string, then returns the string, literally just:</p>
  
  <pre><code>function getCLOB($clob)
  {
     $str = $clob-&gt;read($clob-&gt;size());
     return $str;
  }
  </code></pre>
  
  <p>My problem is that it reads in the first thing I send it fine and I can get that to display back in the FOR loop.  However, when I send the second one, the string is empty.  I put in some echos to see what was happening with the data and the <code>$clob</code> variable has data once it's in the function, but the <code>$str</code> variable is empty after the first line of the function.  Does anyone have any ideas on why it works once but not the second time?</p>