What are the potential consequences of not following PHP coding standards?

Not following PHP coding standards can lead to code that is difficult to read, maintain, and collaborate on with others. It can also result in inconsistencies throughout the codebase, making it harder to debug and troubleshoot issues. To solve this, developers should adhere to established PHP coding standards such as PSR-1 and PSR-2, which promote consistency and readability in code.

<?php
// Incorrectly formatted code
$variable= 10;

// Correctly formatted code
$variable = 10;
?>