What are common issues with PHP syntax and how can they be resolved?
Issue: Missing semicolons at the end of statements can cause syntax errors in PHP code. To resolve this, ensure that each statement is properly terminated with a semicolon.
// Incorrect code
$name = "John"
echo "Hello, " . $name
// Corrected code
$name = "John";
echo "Hello, " . $name;