Created
April 21, 2015 14:38
-
-
Save gmorel/a00ce37ea8f0262ae69c to your computer and use it in GitHub Desktop.
Revisions
-
gmorel created this gist
Apr 21, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ <?php class A { public function methodA() { echo 'A'; } } class B extends A { public function methodA($test = false) { echo 'B'; } } $b = new B(); $b->methodA(); // Display 'B' without error