Home  >  Article  >  Backend Development  >  怎么打印出这个this的原形呢

怎么打印出这个this的原形呢

WBOY
WBOYOriginal
2016-06-13 11:42:38949browse

如何打印出这个this的原形呢

本帖最后由 lghyt1 于 2013-12-14 16:03:30 编辑
<?php<br />class A{<br />    public $name;<br />    public $age;<br />    public function  getASelf() {<br />        $this->name;<br />        var_dump($this);<br />    }<br /><br />}<br /><br />?>

突然对this的原形好奇,如何打出它的原形呢
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:怎么写好一个类Next article:请教这是什么代码