<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.cubrid.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.cubrid-lob2-new.php',
    1 => 'cubrid_lob2_new',
    2 => 'Create a lob object',
  ),
  'up' => 
  array (
    0 => 'ref.cubrid.php',
    1 => 'CUBRID Functions',
  ),
  'prev' => 
  array (
    0 => 'function.cubrid-lob2-import.php',
    1 => 'cubrid_lob2_import',
  ),
  'next' => 
  array (
    0 => 'function.cubrid-lob2-read.php',
    1 => 'cubrid_lob2_read',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/cubrid/functions/cubrid-lob2-new.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.cubrid-lob2-new" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">cubrid_lob2_new</h1>
  <p class="verinfo">(PECL CUBRID &gt;= 8.4.1)</p><p class="refpurpose"><span class="refname">cubrid_lob2_new</span> &mdash; <span class="dc-title">Create a lob object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.cubrid-lob2-new-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>cubrid_lob2_new</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$conn_identifier</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$type</code><span class="initializer"> = &quot;BLOB&quot;</span></span>): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="simpara">
   The <span class="function"><strong>cubrid_lob2_new()</strong></span> function is used to create a lob object (both BLOB and CLOB).
   This function should be used before you bind a lob object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.cubrid-lob2-new-parameters">
 <h3 class="title">Parameters</h3>
 <dl>
  
   <dt><code class="parameter">conn_identifier</code></dt>
   <dd>
    <span class="simpara">Connection identifier. If the connection identifier is not specified,
     the last connection opened by <span class="function"><a href="function.cubrid-connect.php" class="function">cubrid_connect()</a></span> or
     <span class="function"><a href="function.cubrid-connect-with-url.php" class="function">cubrid_connect_with_url()</a></span> is assumed.</span>
   </dd>
  
  
   <dt><code class="parameter">type</code></dt>
   <dd>
    <span class="simpara">It may be &quot;BLOB&quot; or &quot;CLOB&quot;, it won&#039;t be case-sensitive. The default value is &quot;BLOB&quot;.</span>
   </dd>
  
 </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.cubrid-lob2-new-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Lob identifier when it is successful, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.cubrid-lob2-new-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
  <li><span class="function"><a href="function.cubrid-lob2-close.php" class="function" rel="rdfs-seeAlso">cubrid_lob2_close()</a> - Close LOB object</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>