Why is it important to use code tags when sharing code snippets in a PHP forum thread?

Using code tags when sharing code snippets in a PHP forum thread is important because it helps to maintain the formatting and readability of the code. Without code tags, the code may appear jumbled and difficult to follow, making it harder for other forum users to understand and provide assistance. By enclosing the code in code tags, it is displayed in a fixed-width font and retains its indentation, making it easier for others to review and offer help.

<?php
// Example PHP code snippet with code tags
echo "Hello, World!";
?>