What potential pitfalls can arise from not properly formatting PHP code in a forum post?

Improperly formatting PHP code in a forum post can make it difficult for others to read and understand the code, leading to confusion and potential errors. To avoid this, always use proper indentation, spacing, and syntax highlighting when sharing PHP code in a forum post.

<?php

// Properly formatted PHP code example
$variable = "Hello, World!";
echo $variable;

?>