PHPDaemon\HTTPRequest\Input::look PHP Method

look() public method

Read from buffer without draining
public look ( integer $n, integer $o ) : string
$n integer Number of bytes to read
$o integer Offset
return string
    public function look($n, $o = 0)
    {
        if ($this->length <= $o) {
            return '';
        }
        return $this->substr($o, $n);
    }