Skip to content

Instantly share code, notes, and snippets.

@sigsergv
Last active Dec 10, 2015
Embed
What would you like to do?
<?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