In the documentation, we see calling the get() method while requesting one field will assign the field data directly to a variable. However, in Medoo Version: 0.9.8, it assigns it as an array and the data is stored in index 0.
A closer look at the method (development version), reveals that the where parameter data is modified from Line 799 to 804 hence making Line 816 if no use.
See method below.
public function get($table, $join = null, $column = null, $where = null)
{
if (!isset($where))
{
$where = array();
}
In the documentation, we see calling the get() method while requesting one field will assign the field data directly to a variable. However, in Medoo Version: 0.9.8, it assigns it as an array and the data is stored in index 0.
This is what docs indicate.
$email = $database->get("account", "email", [ "user_id" => 1234 ]);
// $email = "foo@bar.com"
A closer look at the method (development version), reveals that the where parameter data is modified from Line 799 to 804 hence making Line 816 if no use.
See method below.
public function get($table, $join = null, $column = null, $where = null) { if (!isset($where)) { $where = array(); }