So let say we have a folder named "Template
", inside this folder we have
Template -
home.php
about.php
contact.php
Now in index.php
file, I want to call this php files, NOT the content of each files only the file name home
about
contact
. So the output of index.php
should be something like this:
HELLO WORLD! Here are the list of filenames inside the template folder!
HOME
ABOUT
CONTACT
I checked other answers here but it is not in PHP