AI智能
改变未来

php函数之间的变量访问(自家用仅供参考)

php函数之间的变量访问:

class pajero extends CI_Controller {public $shop_name_two;public function  toyota_cruisor(){$shop_name = $this->input->post(\'shop_name\');$this->shop_name_two = $shop_name;}public function patrol(){echo $this->shop_name_two;}}
赞(0) 打赏
未经允许不得转载:爱站程序员基地 » php函数之间的变量访问(自家用仅供参考)