note 108572 added to function.oci-fetch-object
| From: | juanloman at hilfetech dot com | Date: | Tue, 08 May 2012 08:33:50 +0000 |
| Subject: | note 108572 added to function.oci-fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187516@lists.php.net to get a copy of this message | ||
Please note that you can still reference a column that has a very complex name by using the curly
syntax as shown in this example:
<?php
$queryStr = 'SELECT COUNT(*) FROM FOOBAR'; //Complex name!
// parse and exec...
$queryObj = oci_fetch_object($quertStmt);
echo 'Count: ' . $queryObj->{'COUNT(*)'}; //Curly syntax reference
?>
----
Server IP: 69.147.83.197
Probable Submitter: 189.203.204.217
----
Manual Page -- http://www.php.net/manual/en/function.oci-fetch-object.php
Edit -- https://master.php.net/note/edit/108572
Del: integrated -- https://master.php.net/note/delete/108572/integrated
Del: useless -- https://master.php.net/note/delete/108572/useless
Del: bad code -- https://master.php.net/note/delete/108572/bad+code
Del: spam -- https://master.php.net/note/delete/108572/spam
Del: non-english -- https://master.php.net/note/delete/108572/non-english
Del: in docs -- https://master.php.net/note/delete/108572/in+docs
Del: other reasons-- https://master.php.net/note/delete/108572
Reject -- https://master.php.net/note/reject/108572
Search -- https://master.php.net/manage/user-notes.php