What are some best practices for creating a cronjob in PHP?

When creating a cronjob in PHP, it's important to ensure that the script is executable from the command line and that it includes the correct shebang line at the top. Additionally, make sure to specify the full path to the PHP executable in the cronjob command to avoid any path-related issues.

#!/usr/bin/php
<?php

// Your PHP script code here