What are some best practices for including session_start() in PHP files to avoid conflicts and errors?

When including session_start() in PHP files, it is important to ensure that it is called before any output is sent to the browser to avoid conflicts and errors. One way to achieve this is by placing session_start() at the very beginning of the PHP file, before any HTML or whitespace.

<?php
session_start();

// Rest of your PHP code goes here
?>