Is this code efficient in PHP? :     function addWeight ($arout, $lineCountry, $lineDomain, $target, $weight)
    {
    
    	$currentDomain=getDomain();
    	$currentCountry=getCountry();
    	
    	
    	if ($currentCountry==$lineCountry && ($currentDomain == $lineDomain || $lineDomain==""))
    	{
    		$tarobreakpoint=0;
    		$arout [$target] =  intval($weight);
    	}
    	return $arout;
    }

Basically it took an array as a parameter. Depending on some circumstances it add elements to the array.

I wonder if this is efficient.

If $arout is passed by reference like all array should then I think it's efficient.

If it's just copied and passed by value then well it's not.

So what's the verdict?