method getObjects documentation in bbn\Db\Languages\Sql
Return an array of stdClass objects.
Example
X::dump($db->getObjects("SELECT name FROM table_users"));
/*
(array) [
Object stdClass: df {
"name" => "John",
},
Object stdClass: df {
"name" => "Michael",
},
Object stdClass: df {
"name" => "Thomas",
},
Object stdClass: df {
"name" => "William",
},
Object stdClass: df {
"name" => "Jake",
},
]
function()
{
if ($r = $this->query(...\func_get_args())) {
return $r->getObjects();
}
return [];
}
Return an array of stdClass objects. 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