Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in C:\xampp\htdocs\chetanweb\index.php on line 6

All QuestionsCategory: PHPParse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in C:\xampp\htdocs\chetanweb\index.php on line 6
chetan shidling asked 4 years ago

How to fix this error in PHP?

1 Answers
chetan shidling answered 4 years ago

This type of error occurs if you have missed any semicolon. 
 
For example:
 
<?php
echo “Hello world;
?>
 
Check semicolon in the echo line. If you miss semicolon then you will face this error.