<?php $x = 30; $y = 10; function myTest() { global $x, $y; $y = $x / $y; } myTest(); echo $y; // outputs 15 ?>
by Luka Okujava
2 years ago
PHP
1
Pro tip: use ```triple backticks around text``` to write in code fences