So im using a php framework called fuelphp, and I have this page that is a html file so i can't use php in it, and I have another file that has a top bar in it, which my html file will call though ajax. And I was just asking, how do we check if a constant exists in php? aka (the fuelphp framework file locations)
so these are constants I need to check (well I only have to check one of them)
First, these are not variables, but constants.
And you can check their existence by using the defined() function :
bool defined ( string $name ) Checks whether the given constant exists and is defined.