in my php code I get this error
Notice: Undefined variable: browserHeader in connectenparse.class.php on line 12
and my code start here with line 9
private $browserHeader = array ( "'0' => Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
    public function connectenParse($loginPage, $header=''){
        $this->loginPage = $loginPage;
        $this->browserHeader = $browserHeader[$header];
    }
My input is
$run = new connectenParse('http://example.com','0');
echo $run->streamParser();
streamParser function takes the variable end returns it. When I create the class with second parameter which is defined for browser header, it must return Mozilla/5.0. Where is the problem?
 
     
     
    