a useful new function
shaobingme opened this issue · 2 comments
shaobingme commented
Suggest to add a new function
public function getValue($name) { $query = $this->get(); return isset($query[$name])?$query[$name]:false; }
izniburak commented
Hi @shaobingme ,
Thanks for your suggestion. We might think to add that functionality in next release. I note that.
Thanks.
lee-php commented
I made a slight change:
public function getValue(string $field)
{
$query = $this->select($field)->get('array');
return $query[$field] ?? null;
}