Last active
November 8, 2016 12:05
-
-
Save gorkamu/1c7df54e7868fdebe398517f893054e1 to your computer and use it in GitHub Desktop.
Ejemplo de destructor
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 | |
class ChuckyDeCieza | |
{ | |
function __construct() { | |
print "Diez pastillones y no me diste ni mielda".PHP_EOL; | |
} | |
function __destruct() { | |
print "Quieres sentirla en el pesho?".PHP_EOL; | |
} | |
} | |
$chuckyDeCieza = new ChuckyDeCieza(); // Imprime 'Diez pastillones y no me diste ni mielda' | |
exit(); // Imprime 'Quieres sentirla en el pesho?' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment