What is the best practice for linking to PDF documents in PHP scripts?

When linking to PDF documents in PHP scripts, it is best practice to use the appropriate HTML anchor tag with the href attribute pointing to the location of the PDF file. This ensures that users can easily access and download the PDF document when clicking on the link.

<?php
$pdfFile = "path/to/your/pdf/document.pdf";
?>
<a href="<?php echo $pdfFile; ?>" target="_blank">Download PDF</a>