today's Course: PHP Development-0 Basics to Master Crazy Combat Tutorials (second season) "Wei Chi teacher"
1. OOP Programming Overview (Object oriented)
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9D/79/wKioL1mAh5GRN59cAAISXiOop7A340.jpg-wh_500x0-wm_ 3-wmp_4-s_3578951305.jpg "title=" 36020170801215221215.jpg "alt=" Wkiol1mah5grn59caaisxioop7a340.jpg-wh_50 "/>
2. PHP class and Object combat
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9D/79/wKiom1mAiOuTPfZFAADT8WXbVTI292.jpg-wh_500x0-wm_ 3-wmp_4-s_3971011083.jpg "title=" 36020170801215855503.jpg "alt=" Wkiom1maioutpfzfaadt8wxbvti292.jpg-wh_50 "/>
/* class declares a member of class name {class,} modifier class class name {class member;}*/class a{}final class b{//no subclass}
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9D/79/wKioL1mAioKAmQJyAAGGnya5h9o188.jpg-wh_500x0-wm_ 3-wmp_4-s_2139059580.jpg "title=" 36020170801220540070.jpg "alt=" Wkiol1maiokamqjyaaggnya5h9o188.jpg-wh_50 "/>
/* Properties and Methods */class A{var $name;//general properties private $heigh;//private property public $weigh;//common property static $age;//static Property function A () {// Method using function to declare echo "I can eat!<br>";} }
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/9D/79/wKioL1mAjNWwL3Q4AAMwKKsEmsA975.png-wh_500x0-wm_ 3-wmp_4-s_3642647246.png "title=" Qq20170801221524.png "alt=" Wkiol1majnwwl3q4aamwkksemsa975.png-wh_50 "/>
/* Object Instantiation */$b = new A (); $c = new A (); final class b{//no subclass}/* Access member properties */$b-name; $b, name = ' one '; Echo $b-Name, ' & Lt;br> '; $c, name; $c, name = ' one '; Echo $c, name, ' <br> ';
Abandoned fish--how long does PHP take to get from getting started to giving up? 17