PHP – assign require() file to variable

$some_variable_on_include_php = '12';
ob_start();
include 'include.php';
$buffer = ob_get_clean();

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.