Are there any specific use cases or scenarios where triple quotes are commonly used in PHP?

Triple quotes in PHP are commonly used for multi-line strings, especially when the string contains both single and double quotes. This can be useful when writing SQL queries, HTML templates, or any other type of text that requires multiple lines and quote characters. Using triple quotes allows you to avoid escaping individual quote characters within the string, making the code cleaner and easier to read.

$query = <<<SQL
SELECT *
FROM users
WHERE username = 'john.doe'
SQL;