Last active
December 10, 2015 22:08
-
-
Save sigsergv/4500067 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 C1 { | |
function func_1() | |
{ | |
print 'Function func_1() call'; | |
} | |
} | |
class C2 { | |
function func_x() | |
{ | |
C1::func_1(); | |
} | |
} | |
class C3 { | |
static function func_y() | |
{ | |
C1::func_1(); | |
} | |
} | |
$x = new C2(); | |
$x->func_x(); | |
C3::func_y(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment