Fatal error: Allowed memory size exhausted

Hello, i have a problem in my index.php i have added this function /////Browser

function getrealbrowser(){

$ubr = $_SERVER[‘HTTP_USER_AGENT’];

$ubr=strtok(getrealbrowser(), ‘/’);

$ope = $_SERVER[‘HTTP_X_OPERAMINI_PHONE’];

if ($ope==""){

$br = $ubr;

}else{

$br = “$ope $ubr”;

}

$br = mysql_real_escape_string($br);

$br = htmlspecialchars($br);

return $br;

}

$ubr = getrealbrowser();

You are recursively calling the same function without a stop-condition. Therefore the function will continue calling itself until the memory-limit is reached.