Puoi risolvere così.
Codice PHP:
function a($str) { 
    echo (
"Variabile: ".$str); 
}

$varp "xxx";
a($varp);