Query: sybase_fetch_object
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SYBASE_FETCH_OBJECT(3) SYBASE_FETCH_OBJECT(3) sybase_fetch_object - Fetch a row as an objectSYNOPSISobject sybase_fetch_object (resource $result, [mixed $object])DESCRIPTIONsybase_fetch_object(3) is similar to sybase_fetch_assoc(3), with one difference - an object is returned, instead of an array. Speed-wise, the function is identical to sybase_fetch_array(3), and almost as quick as sybase_fetch_row(3) (the difference is insignifi- cant).PARAMETERSo $result - o $object - Use the second $object to specify the type of object you want to return. If this parameter is omitted, the object will be of type stdClass.RETURN VALUESReturns an object with properties that correspond to the fetched row, or FALSE if there are no more rows.EXAMPLESExample #1 sybase_fetch_object(3) return as Foo <?php class Foo { var $foo, $bar, $baz; } // {...] $qrh= sybase_query('SELECT foo, bar, baz FROM example'); $foo= sybase_fetch_object($qrh, 'Foo'); $bar= sybase_fetch_object($qrh, new Foo()); // {...] ?>SEE ALSOsybase_fetch_array(3), sybase_fetch_row(3). PHP Documentation Group SYBASE_FETCH_OBJECT(3)
Related Man Pages |
---|
mssql_fetch_object(3) - php |
fbsql_fetch_object(3) - php |
sybase_fetch_object(3) - php |
sybase_fetch_row(3) - php |
sybase_result(3) - php |
Similar Topics in the Unix Linux Community |
---|
@ is a special array |