0 LIKES LikeUnLike
I am just learning to code PHP and I have written this simple program:<?php$answer='xbox360'echo ('What is the best system ever?'. $answer)if ($answer == 'xbox360'){echo ('have you played pray yet? It rocks!');}else{ echo ('all other systems suck)');}?>When run in a browser i get the parse error: Parse error: syntax error, unexpected T_ECHO in C:\wamp\www\phpvt\lesson 5\functions.php_phpd_tmp34.php on line 3What is wrong with the code?
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.