Created
December 3, 2018 15:19
-
-
Save UniBreakfast/71a3fe921ca7b5fa9d0f6484ec9746df to your computer and use it in GitHub Desktop.
testing php module function in module
This file contains 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
<?php | |
# some function in some php-file meant to be used as a module | |
function myFunc(param) { | |
echo param; | |
} | |
# testing function from module in that module | |
# so that it does not impact the usage elsewhere | |
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) myFunc(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment