<!DOCTYPE html> <html> <body> <?php $x=5; $y=10; $z=$x*$y; function practiceTest() { global $x,$y,$z; $z=$x*$y; } practiceTest(); // run function echo $z; // output the new value for variable $y ?> </body> </html>
You have javascript disabled. You will not be able to edit any code.