today's Course: PHP Development-0 Basics to Master Crazy Combat Tutorials (second season) "Wei Chi teacher"
Courses received yesterday's course
/* Access Member Method */$b->b ();
1. Object and member access
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9D/90/wKioL1mB3vKhI0cvAAFJMgNnIdI089.jpg-wh_500x0-wm_ 3-wmp_4-s_325565991.jpg "title=" 36020170802221745246.jpg "alt=" Wkiol1mb3vkhi0cvaafjmgnnidi089.jpg-wh_50 "/>650 ) this.width=650; "Src=" https://s4.51cto.com/wyfs02/m00/9d/90/wkiom1mb31gzlru0aaht4dj1buu651.png-wh_500x0-wm_3- Wmp_4-s_2312847965.png "title=" Qq20170802221944.png "alt=" Wkiom1mb31gzlru0aaht4dj1buu651.png-wh_50 "/>
/* $this */class C{var $name;//general properties private $heigh;//private property public $weigh;//common property static $age;//static property function B () {// Method using function to declare echo "I can eat!<br>";} Function d () {echo "My name is:". ( $this, name). ' <br> '; $this-B ();} } $p = new C (); $p, name = "Da"; $p->d ();
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9D/91/wKiom1mB8NyCK6KyAAJEObarCbU907.png-wh_500x0-wm_ 3-wmp_4-s_2972433603.png "title=" Qq20170802233442.png "alt=" Wkiom1mb8nyck6kyaajeobarcbu907.png-wh_50 "/>
/* Construction method and destructor method */class E{var $name;//General Property private $heigh;//private property public $weigh;//common property static $age;//static property function B () {// Method using function to declare echo "I can eat!<br>";} Function d () {echo "My name is:". ( $this, name). ' <br> '; $this-B ();} function __construct () {//Construction method echo "I am gouzao<br>";} function __destruct () {//destructor method echo "I am Xigou";}} $q = new E (); $q e (); $q d ();
This article from "A Big big waste fish" blog, declined reprint!
Abandoned fish--how long does PHP take to get from getting started to giving up? 18