If i have an if statement that relies on one of two methods returning false, would both methods run if the first methods returns false. Example:
class myClass {
public function functPublic()
{
if(!$this->funct1() || !$this->funct2()){
print('test');
}
}
private function funct1()
{
// complex code here
return false;
}
private function funct2()
{
// complex code here
return false;
}
}
Would the above code execute the funct2() method even though it has already recieved a false from the funct1() method?
die("second funct called");in your function.