XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load.
https://xcache.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
805 B
45 lines
805 B
![]()
11 years ago
|
<?php
|
||
|
|
||
|
class ClassName
|
||
|
{
|
||
|
static public $static = array(
|
||
|
array('array'),
|
||
|
'str'
|
||
|
);
|
||
|
static public $public_static = array(2, 'str');
|
||
|
static private $private_static = array(2, 'str');
|
||
|
static protected $protected_static = array(2, 'str');
|
||
|
public $property = array(
|
||
|
array('array'),
|
||
|
'str'
|
||
|
);
|
||
|
public $public_property = array(2, 'str');
|
||
|
private $private_property = array(2, 'str');
|
||
|
protected $protected_property = array(2, 'str');
|
||
|
|
||
|
public function __construct($a, $b)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
function method(ClassName $a = null, $b = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function publicMethod(ClassName $a = null, $b = 2)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
protected function protectedMethod(ClassName $a, $b = array(array("array")))
|
||
|
{
|
||
|
return 'protected';
|
||
|
}
|
||
|
|
||
|
private function privateMethod(ClassName $a, $b = null)
|
||
|
{
|
||
|
return 'private';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|