note 31062 rejected from function.ocifetchstatement by alindeman

From: Date: Tue, 08 Apr 2003 20:37:11 +0000
Subject: note 31062 rejected from function.ocifetchstatement by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-46375@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?

« previous php.notes (#46375) next »