Is this simple php code ok?

Master

New member
i made this simple code

<?php

$var2=3;
echo "{$var2} is equal to 3";
?>

in a tutorial at lynda.com the output must be

$var2 is equal to 3

but when i write it on zend studio and louch it the output is

3 is equal to 3

is the tutorial to old or what?
so i just want to know is this tutorial wrong??or its for an old version of php?coz its inutile to learn a tutorial with wrong code
 
Back
Top