Multiple API Calls in a Class

后端 未结 3 733
情话喂你
情话喂你 2020-12-20 05:29

I am trying to make multiple API requests and I have to make the request in different functions that are within a class like so:

class exampleClass
{    
  f         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 06:20

    Answer to first question: Yes you are, each time the method is called it executes all its definition again.

    Answer to second question: Yes there is, so called member properties. You can read up about them in the PHP manual here: PHP Manual: Properties

提交回复
热议问题