I'm familiar with classic ASP. In ASP, I can announce a variable like this:
<% dim pageTitle %>
And save this in a separate .asp file. Then, on another page, I can include that .asp file and write ASP code like this:
<% pageTitle = "Furniture" %>
Which assigns pageTitle a value. With that assigned, I can write an if statement like this (on another, separate page):
<% if pageTitle = "Furniture" then %>
<% end if %>
Now I've been looking online for how to do this same exact process in PHP, but I'm not having luck. It's important that all of this function in separate files. So the dim happens in one include, the value is assigned in another include file, and the if statement happens in a third file.
Can anyone help?