Analysis of php function continuous call instances and php function instances. Php function continuous call instance analysis, php function instance analysis this article describes the php function continuous call method. Share it with you for your reference. The details are as follows: php returns $ this, real php function continuous call instance analysis, php function instance analysis
This example describes how to call php functions continuously. Share it with you for your reference. The details are as follows:
<? Php // returns $ this for continuous calling of class xin {function name ($ namec) {echo "My name is: $ namec
"; Return $ this;} function age ($ agec) {echo" My age is: $ agec
"; Return $ this ;}$ xind = new xin (); $ xind-> name (" ")-> age (" 10000 ");?>
The running result is as follows:
My name is: Star
My age is 10000
I hope this article will help you with php programming.
Examples in this article describes how to call php functions continuously. Share it with you for your reference. Php // returns $ this, real...