php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50353 FUnction shown which isn't implemented
Submitted: 2009-12-01 13:37 UTC Modified: 2009-12-01 15:05 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: php at lafco dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.1 OS: WIN64
Private report: No CVE-ID: None
 [2009-12-01 13:37 UTC] php at lafco dot de
Description:
------------
Wrong sample code, and/or missing function




Reproduce code:
---------------
---
From manual page: sqlite3.query#Beispiele
---
example refers to 

$results = $db->query('SELECT bar FROM foo');
while ($row = $results->fetchArray()) {
    var_dump($row);
}

but fetchArray() isn't impelemented, as searching the documentation
only refers to sqlite (beside others) but not to sqlite3.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-01 14:23 UTC] niel dot archer at blueyonder dot co dot uk
I'm afraid you have misunderstood the example, and the query method. On success it returns a SQLiteResult object. The function you refer to is a method of that object, which is documented here:
http://docs.php.net/manual/en/sqlite3result.fetcharray.php
 [2009-12-01 15:05 UTC] rquadling@php.net
fetchArray() is a method of SQLite3Result.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC