function getRequire($fileName)
{
ob_start();
require($fileName);
return ob_get_clean();
}
Returns the ouput of “$fileName” in a variable.
{
ob_start();
require($fileName);
return ob_get_clean();
}
Returns the ouput of “$fileName” in a variable.
Powered by ScribeFire.
No User Responded in " Sending the Output of require / include to a variable in php "
Sorry the comment area are closed