I\'m wondering if it is at all possible to create a stream wrapper in order to load some code from an array into using something like the following
Include can take arbitrary urls. Read this. Here is an example HTTP code taken from there:
And just change it to include "template://$thevalue";
include "template://$thevalue";