title: PHP Check If Function Returns True or False
body: <p>How do I provide the arguments in the second function when checking if the first function returns true or false?</p>
  
  <pre><code>public function function1($arg1, $arg2, $arg3){
     if(($arg1 + $arg2 + $arg3) == 15){
        return true;
     }else{
       return false;
     }
  }
  
  public function function2(){
     if($this-&gt;function1(what do i put in here???) === true){
        // do something
     }else{
        // do something else
     }
  }
  </code></pre>
  
  <p>I only need to know how to provide the arguments when calling the first function. The first function does it job and return true or false. In the second function I just need to know if the return value was true or false. Do I still need to provide the arguments? Why can't I just call the function like $this->function1()?</p>
  
  <p>Would it make more sense to just save the return value in a variable and check that in the second function?</p>
  
  <p>Thank you!</p>