What are the advantages of using code tags when displaying PHP code in a forum thread?

Using code tags when displaying PHP code in a forum thread helps to maintain the formatting and readability of the code. It makes it easier for other forum members to understand the code and identify any errors or issues. Additionally, code tags prevent the forum software from interpreting the code as HTML or other markup language, ensuring that the code is displayed as intended.

<?php
// Code snippet goes here
?>