Skip to content

Instantly share code, notes, and snippets.

@kurtroberts
Last active July 3, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtroberts/a5c630792e786313e0e1 to your computer and use it in GitHub Desktop.
Save kurtroberts/a5c630792e786313e0e1 to your computer and use it in GitHub Desktop.
When only the least elegant solution will do...
<?php
//I have made a lot of nice things with PHP. But this isn't one of them.
if (!function_exists('lets_confuse_strings_and_symbols')) {
function lets_confuse_strings_and_symbols ($funny_function_name) {
return eval($$funny_function_name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment