Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

第 2 章 Language Reference

目录

2.1. 常量
2.1.1. __FUNCTION__
2.2. php://stdin & php://stdout
2.3. Functions (函数)
2.3.1. 匿名函数(Anonymous functions)
2.4. Exception
2.5. Generator 生成器
2.6. PHP Classes 类与对象
2.6.1. 构造函数和析构函数 __construct() / __destruct()
2.6.2. Traits
2.6.3. PHP
2.6.4. Example
2.6.4.1. Method

2.1. 常量

2.1.1. __FUNCTION__

class News{

	public function __construct(){
	}
	public function add(){
		echo __FUNCTION__;
	}
}

$news = new News();
$news->add();