1 2 3 4 5 6 7 8 9
<?php function hello() {global $tname; $tname= 'hello '.$tname; } $tname="trofun"; hello(); echo $tname; ?>
1
hello trofun