I need to have include page inside the php heredoc variable but it doesn't work please help me.
$content = <<<EOF
include 'links.php';
EOF;
You can do this way:
ob_start();
include 'links.php';
$include = ob_get_contents();
ob_end_clean();
$content = <<<EOF
{$include}
EOF;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With