So far we've seen SQLite retrieve data in the form of array, but it can just as easily return them as objects.

<pre>
<?php
$db = sqlite_open(dirname(__FILE__)."/ip.db");
$res = sqlite_query("SELECT * FROM country_data LIMIT 2", $db);
    
while (($obj = sqlite_fetch_object($res))) {
    print_r($obj);
}

sqlite_close($db);
?>
</pre>
Output