PHP call Class method / function

后端 未结 7 457
佛祖请我去吃肉
佛祖请我去吃肉 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']);
    

提交回复
热议问题