$num = 10; function multiply() { $num = $num * 10; } multiply(); echo $num;
This prints "10" to the screen.
$num = $num * 10; echo $num;
But this prints "0".
Why is that?
no subject
Date: 2008-06-23 02:50 pm (UTC)From:Why does the function print 10?
no subject
Date: 2008-06-23 03:12 pm (UTC)From: