What are some best practices for organizing files and folders in PHP projects for breadcrumb navigation?

When organizing files and folders in PHP projects for breadcrumb navigation, it is important to follow a logical structure that reflects the hierarchy of your website. One common approach is to create a separate folder for each section of your website, with subfolders for each subsection. This makes it easier to locate files and ensures that breadcrumb navigation accurately reflects the user's path through the site.

<?php
// Example folder structure for a website
// /index.php
// /products
// /products/index.php
// /products/category1
// /products/category1/index.php
// /products/category1/product1.php
// /products/category2
// /products/category2/index.php
// /products/category2/product2.php
?>