Basket::findone PHP Method

findone() public method

Return first item that matches key/value pair
public findone ( $key, $val ) : object | FALSE
$key string
$val mixed
return object | FALSE
    function findone($key, $val)
    {
        return ($data = $this->find($key, $val)) ? $data[0] : FALSE;
    }