How to fix 'parse error: syntax error in php'?

Example:

echo 'Hello, World!

Typically caused by missing semicolons, unmatched brackets, or other syntactical mistakes.

Solution:

Always review your code for any syntax mistakes. Most modern IDEs will highlight these for you.


echo 'Hello, World!';

Beginner's Guide to PHP