How can I "get" the return value of a function?
<p>What is the syntax to find out in method2 whether method1 one returned true or false?</p>

<pre><code>class myClass{
public function method1($arg1, $arg2, $arg3){
   if(($arg1 + $arg2 + $arg3) == 15){
      return true;
   }else{
     return false;
   }
}

public function method2(){
   // how to find out if method1 returned true or false?
}
}

$object = new myClass();
$object-&gt;method1(5, 5, 5);
</code></pre>
