method fetchObject documentation in bbn\Db\Languages\Sql
Return stdClass object or false if no result.
Example
X::dump($db->fetchObject("SELECT * FROM table_users WHERE name = 'john'"));
// stdClass Object {
"id" => 1,
"name" => "John",
"surname" => "Smith",
}
function($query)
{
if ($r = $this->query(...\func_get_args())) {
return $r->fetchObject();
}
return false;
}
Return stdClass object or false if no result. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions