function ese1(&$a) { global $b; // variabile globale $a += $a++; $a=(($b)?$a--:$a+3); } $a=3; $b=0; ese1($a); echo ($a);