Last active
September 18, 2021 22:48
-
-
Save chilic/eab4c96219221172aa4c5ba0c5156f14 to your computer and use it in GitHub Desktop.
php: Self-destruct message
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
<?php | |
echo "This message will self-destruct in ..\n"; | |
foreach (range(3, 1, -1) as $num) { | |
echo "$num...\n"; | |
sleep(1); | |
} | |
unlink(__FILE__); | |
echo "💨 Poof!\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment