What are some best practices for commenting in YAML files in PHP?

When commenting in YAML files in PHP, it is important to provide clear and concise explanations to help others understand the code. Use comments to describe the purpose of each section, provide context for specific configurations, or explain any complex logic. Avoid unnecessary comments that simply restate the code.

// Define configuration options for database connection
$databaseConfig = [
    'host' => 'localhost', // Database host
    'username' => 'root', // Database username
    'password' => 'password123', // Database password
    'database' => 'my_database' // Database name
];