kullanım şeklin yanlış
doğrusu
$kalas=$_GET['sayfa'];
class Google{
private $googleUrl;
function Google()
{
$this->googleUrl ="http://www.google.com/search?&start=".$kalas."&q=";
}
sağolasın yardımın için ama redeclare felan dedi. class ın orayı biraz daha açarak yazıyorum
class Google {
private $keyword="xxx";
private $lyricsWebsite="www.xxxx.com";
private $googleUrl="http://www.google.com/search?&start=".$kalas."&q=";
private $regpattern1='/<h1 class=r\>(.*)\<\/h1>/Us';
private $regpattern2='/<h2 class=r\>(.*)\<\/h2>/Us';