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


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
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 6 years ago

How to fix this error in PHP?

1 Answers
chetan shidling answered 6 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.