PHP call Class method / function

后端 未结 7 441
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 10:47

How can I call following Class method or function?

Let say I have this params get from url:

$var = filter($_GET[\'params\']);

相关标签:
7条回答
  • 2020-12-09 11:42

    You need to create Object for the class.

    $obj = new Functions();
    $var = $obj->filter($_GET['params']);
    
    0 讨论(0)
提交回复
热议问题