What are common syntax errors to look out for when using PHP, as highlighted in the provided code snippet?
One common syntax error to look out for in PHP is missing semicolons at the end of statements. This can cause unexpected behavior or errors in the code. To solve this issue, ensure that each statement is properly terminated with a semicolon. Example:
// Incorrect code with missing semicolons
$name = "John"
echo "Hello, $name!"
// Corrected code with semicolons added
$name = "John";
echo "Hello, $name!";