Calling a function within a Class method?

前端 未结 10 1059
庸人自扰
庸人自扰 2020-12-02 05:14

I have been trying to figure out how to go about doing this but I am not quite sure how.

Here is an example of what I am trying to do:

class test {
          


        
10条回答
  •  春和景丽
    2020-12-02 06:09

    class test {
        public newTest(){
            $this->bigTest();
            $this->smallTest();
        }
    
        private  function bigTest(){
            //Big Test Here
        }
    
        private function smallTest(){
           //Small Test Here
        }
    
        public scoreTest(){
          //Scoring code here;
        }
     }
    

提交回复
热议问题