Last active
July 25, 2016 01:39
-
-
Save markzz/472230a8fa6fe83596fb04b4026aaa27 to your computer and use it in GitHub Desktop.
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 | |
class ParentClass { | |
function __construct() { | |
echo "TEST\n"; | |
} | |
} | |
class ChildClass extends ParentClass { | |
function __construct() { | |
echo "TEST2\n"; | |
parent::__construct(); | |
} | |
} | |
$c = new ChildClass(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment