src/PTel.php
public function findAll($str) {
        $this->recvAll();
        $output_as_array = explode($this->retcarriage, $this->getBuffer());
        foreach ($output_as_array as $line) {
            if (preg_match("/{$str}/", $line, $matches)) {
                return $matches[0];
            }
        }
        return false;
    }
public function findAll($str) {
        $this->recvAll();
        $output_as_array = explode($this->retcarriage, $this->getBuffer());
        foreach ($output_as_array as $line) {
            if (preg_match("/{$str}/", $line, $matches)) {
                return $matches[0];
            }
        }
        return false;
    }
public function findAll ( $ str ) { $ this -> recvAll ( ) ; $ output_as_array = explode ( $ this -> retcarriage , $ this -> getBuffer ( ) ) ; foreach ( $ output_as_array as $ line ) { if ( preg_match ( "/{$str}/" , $ line , $ matches ) ) { return $ matches [ 0 ] ; } } return false ; }
Receive all data, and search through global buffer

@param string    $str    String to search (regex supported)

@return bool|string  False if not found, string contains search
Receive all data and search through global buffer