What are the best practices for commenting out code in PHP to avoid syntax errors?

When commenting out code in PHP, it's important to use the correct syntax to avoid causing syntax errors. The best practice is to use either // for single-line comments or /* */ for multi-line comments. This ensures that the commented-out code does not interfere with the rest of the PHP code.

// Single line comment
// $variable = "This line of code is commented out";

/*
Multi-line comment
$variable = "This block of code is commented out";
echo "This line is also commented out";
*/