title: How to handle Oracle CLOB in PHP?
body: <p>I asked a question like this yesterday, but I haven't got any answers yet.</p>
  
  <p>The point: How can I get the CLOB reference such as in an insert into or update statement:</p>
  
  <pre><code>$sql = "INSERT INTO table (data) VALUES (EMPTY_CLOB()) RETURNING data INTO :data";
  $statement = oci_parse($conn, $sql);
  $descriptor = oci_new_descriptor($conn, OCI_DTYPE_LOB);
  oci_bind_by_name($statement, ':data', $descriptor, -1, OCI_B_CLOB);
  oci_execute($statement);
  $descriptor-&gt;save('5000 chars');
  oci_free_descriptor($descriptor);
  </code></pre>
  
  <p>So, I want call the clob save method without insert and update statement.
  So I tried:</p>
  
  <pre><code>$sql = "SELECT data FROM table WHERE id = " . $fooid;
  $statement = oci_parse($conn, $sql);
  oci_execute($statement);
  $row = oci_fetch_assoc($statement);
  $row['DATA']-&gt;save('5000 chars');
  </code></pre>
  
  <p>How to?</p>
  
  <p>Thx.</p>