our approach|new tutorials|contact us
$answer = $var1 + $var2 ;
Adds the scalar variables $var1 and $var2 together, then assigns the sum to a scalar variable called $answer.
Since $var1 is 5, and $var2 is 2, $answer has a value of 7.
<< BACK
NEXT >>
Want ad-free tutorials like these for classroom use? Get them at Visilearn.com.