What are the potential pitfalls of condensing code into a single line in PHP, and how can this impact the functionality of loops?

Condensing code into a single line in PHP can make it harder to read and maintain, especially for complex logic or loops. This can lead to errors or difficulties in debugging. To improve readability and maintainability, it's better to break down complex code into multiple lines and use proper indentation.

// Example of a condensed loop
for($i = 0; $i < 10; $i++) echo $i;
```

```php
// Improved version with proper formatting
for($i = 0; $i < 10; $i++) {
    echo $i;
}