php man page for sybase_fetch_object

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 object

SYNOPSIS
object sybase_fetch_object (resource $result, [mixed $object])
DESCRIPTION
sybase_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).
PARAMETERS
o $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 VALUES
Returns an object with properties that correspond to the fetched row, or FALSE if there are no more rows.
EXAMPLES
Example #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 ALSO
sybase_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