diff --git a/php1.php b/php1.php new file mode 100644 index 0000000..a296d68 --- /dev/null +++ b/php1.php @@ -0,0 +1,63 @@ +'; + + echo __LINE__; + echo __FILE__; + echo __DIR__; + + + echo $GLOBALS; + + echo TRUE && TRUE; + + +echo (int) (7/2); + + + ?> + + diff --git a/php2.php b/php2.php new file mode 100644 index 0000000..78e7510 --- /dev/null +++ b/php2.php @@ -0,0 +1,18 @@ + + + diff --git a/php3.php b/php3.php new file mode 100644 index 0000000..a1a4250 --- /dev/null +++ b/php3.php @@ -0,0 +1,82 @@ +get_constant_a(); +echo $gino::A; + +a::$alfio = 2; +echo a::$alfio; +echo b::get_alfio(); + + + +class a { + +const A = "mario"; +const B = "mariob"; + +public $a; +public $b; + +static public $alfio; + + public function __construct ($i1,$i2){ + $a=$i1; + $b=$i2; + } + + + public function get_constant_a (){ + + + echo self::A; + + } + + public function test (){ + print "ale"; + } + + +} + + +class b extends a{ + +const A = "sa"; +const B = "sas"; + +public $c; + +static public $alfio; + +public static function get_alfio(){ + return parent::$alfio; +} + + public function __construct ($i1,$i2,$i3){ + parent::__construct($i1,$i2); + $c=$i3; + } + + + public function get_constant_a (){ + + + echo parent::get_constant_a (); + self::test(); + + } + + +} + + + + + ?> + +