Skip to content

Instantly share code, notes, and snippets.

@sigsergv
Last active December 10, 2015 22:08
Show Gist options
  • Save sigsergv/4500067 to your computer and use it in GitHub Desktop.
Save sigsergv/4500067 to your computer and use it in GitHub Desktop.
<?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