I came across an interesting thing and I am wondering how if at all it would be possible, I have found the reverse basically of what I want to do thanks to google but am baffled if its possible or if I am going to need to find another workaround.

The question:
Can you put a string into an include, so for example:

include($string'file.php');

Google keeps telling me how to make an include into a string which isn't exactly what I want.

Nevermind one of those moments, correct code is:
include($string.'file.php');

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.