Example #1
0
    }
}
// $t3 = new Test3;
// echo $t3->shirina;
// echo $t3->boja;
// echo $t3->visina;
// $t3->boja = 'sina';
class Test4
{
    // ...
    public function __call($name, $args)
    {
        echo 'Method: ' . $name . ', Arguments: ' . implode(', ', $args);
    }
}
$t4 = new Test4();
$t4->brmBrm();
echo '<br/>';
$t4->test('Pero', 'Janko', 'Stanko');
echo '<br/>';
$t4->mjau();
class StaticClass
{
    public static $string;
    public static function length()
    {
        return strlen(self::$string);
    }
}
StaticClass::$string = 'Hello world!';
echo StaticClass::length();
Example #2
0
 function __construct($value1, $value2, $value3, $value4)
 {
     parent::__construct($value1, $value2, $value3);
     $this->var1 = $value4;
 }