Next Oct 5 Previous
Just take a rope, that's easier
Consider the following PHP script:
<?php $diameter = 20; $circumference = 0; function circumference() { ... } circumference(); echo $circumference; ?>
What should be placed at the dots to get (a proper estimate of) the circumference of a circle of 20 px, pt, ex, sea miles, cows or whatever printed in your browser window?
A: global $diameter; return $circumference = $diameter * 3.14;
B: $circumference = $diameter * 3.14;
C: global $circumference; $circumference = $diameter * 3.14;
D: $GLOBAL["circumference"] = $GLOBAL["diameter"] * 3.14;
Check all that apply.