Home How to get parameters in class function with php class
 In my project, I had defined a Datasource class in php. I want to call function with class, so I had define static getRedis function in Datasource class. Here is Datasource.php code: config_name=$config_name;$this->server_region=$server_region return$this->config_name; } }  Now I want to call getRedis function and display instance1 in my html page; Here is html code:   But it words fail. I can not get \$redis_obj. it shows nothing. Who can help me?