ext_215697 ([identity profile] outintospace.livejournal.com) wrote in [personal profile] funeralcrasher 2008-06-23 02:46 pm (UTC)

Because $num in the second example is initialized as nothing (or zero, conceptually). Zero * 10 = zero.

Try:

$num = 10;
$num = $num * 10;
echo $num;

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting