Created
September 25, 2019 07:46
-
-
Save nickcano/4b8dbc93c463f9e2c983d03ceae61774 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function evalCode($code) | |
{ | |
ob_start(); | |
// comment out. idk what it breaks but it's a fix for now | |
//eval($code); | |
$output = ob_get_contents(); | |
ob_end_clean(); | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment