What is the significance of using proper spacing in SQL queries in PHP?

Proper spacing in SQL queries in PHP is essential for readability, maintainability, and debugging. It helps to clearly separate keywords, table names, column names, and conditions, making the query easier to understand and modify. Additionally, consistent spacing conventions can prevent syntax errors and improve the overall quality of the code.

$query = "SELECT id, name FROM users WHERE age > 18 ORDER BY name ASC";