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

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

WBOY
Release: 2016-06-13 11:42:38
Original
1017 people have browsed it

如何打印出这个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 />?>
Copy after login

突然对this的原形好奇,如何打出它的原形呢
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template