note 31062 added to function.ocifetchstatement

From: Date: Tue, 08 Apr 2003 15:48:24 +0000
Subject: note 31062 added to function.ocifetchstatement
Groups: php.notes 
Request: Send a blank email to php-notes+get-46364@lists.php.net to get a copy of this message
Why is PHP so inconsistent? I cannot figure this out: By using OCIFetchStatement($stmt,$results), the $results parameter should be an ordinary array, right? Then I should be able to access its elements by using both each($results) and results[0]. This is not the case, using results[0] gives me nothing, that means: count(each($results)) returns 4 while: count($results[0]) returns 0 I find it difficult to use a scripting language with this kind of inconsistency. Why can't this be implemented properly? -- http://www.php.net/manual/en/function.ocifetchstatement.php http://master.php.net/manage/user-notes.php?action=edit+31062 http://master.php.net/manage/user-notes.php?action=delete+31062 http://master.php.net/manage/user-notes.php?action=reject+31062

« previous php.notes (#46364) next »