I don't know what I did but I'm getting a parse error on print("$num1"); It tested OK earlier then I added /n to it. It didn't work so I took it out but I continue to get an error. Strange thing is I add // before this line and I still get parse error msg for this line.
//All the scripts below tested OK.
$num1=8;
echo "<br/>"; //Not sure how this differs from <br> below. Results are the same.
echo $num1;
echo "<br>";
echo 8;
print"($num1);
print('$num1'); //Prints out $num1 not 8.
print("$num1");
echo (2+4);
echo 2+4;
echo "$num1"; //Prints out 8
echo '$num1'; //Prints out $num1 not 8.
print ("Hello World");
print ('Hello World');