Skip to content

Instantly share code, notes, and snippets.

@markzz
Last active July 25, 2016 01:39
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 markzz/472230a8fa6fe83596fb04b4026aaa27 to your computer and use it in GitHub Desktop.
Save markzz/472230a8fa6fe83596fb04b4026aaa27 to your computer and use it in GitHub Desktop.
<?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