So I’m trying to add 2 different (html-header.php and header.php) files in one. I don’t know PHP and most searches lead to advance code which I don’t know.
Here’s the code I’m using:
<?php include 'header.php'; ?>
That includes one of my header files, how would I add another file that goes with header file. Thank you guys in advance.
Include it, just like you included the first one. Docs on include.
Include will just take whatever is in the file and substitute it for the
include 'file.php'line. So the order in which you include files matters.