Steal example from user notes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@139448 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ard Biesheuvel 2003-09-02 09:41:07 +00:00
parent 967fc8d901
commit 9a0c143c4f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 -->
<refentry id='function.ibase-blob-get'>
<refnamediv>
@ -19,6 +19,22 @@
This function returns at most <parameter>len</parameter> bytes from a BLOB
that has been opened for reading by <function>ibase_blob_open</function>.
Returns &false; on failure.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$sql = "SELECT blob_value FROM table";
$result = ibase_query( $sql );
$data = ibase_fetch_object( $result );
$blob_data = ibase_blob_info( $data->BLOB_VALUE );
$blob_hndl = ibase_blob_open( $data->BLOB_VALUE );
print ibase_blob_get( $blob_hndl, $blob_data[0] );
?>
]]>
</programlisting>
</informalexample>
Whilst this example doesn't do much more than a 'ibase_blob_echo( $data->BLOB_VALUE )' would do,
it does show you how to get information into a $variable to manipulate as you please.
</para>
<note>
<para>