Home > Q&A > body text
路过2017-10-23 12:05:45
The local test is indeed 15, you can try it locally
<?php
$x=5;
$y=10;
function mytest()
{
global $x,$y;
$y=$x+$y;
}
mytest();
echo $y;