method getVar documentation in bbn\Db

Execute the given query with given vars, and extract the first cell's result.

(similar to {@link get_one()})

Example

X::dump($db->getVar("SELECT telephone FROM table_users WHERE id>?", 1)); // (int) 123554154 function() { return $this->getOne(...\func_get_args()); }

Execute the given query with given vars, and extract the first cell's 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.