متغیر ها و توابع static در PHP :
<?php
class My_Class{ static $name="noorgram.ir is for tutorial\n"; static function action() { echo "PHP is easy!!\n"; }
}
My_Class::action();
echo My_Class::$name;
$obj=new My_Class();
$obj->action();
ارث بری در PHP با مثال:
<?php
class a{ function test() { echo "Test in class a"."<br />"; } function show($var) { echo "in class a: the varible is $var"."<br />"; }
}
class b extends a { function test() { echo "Test in class b"."<br />"...