lundi 26 février 2018

Is it possilble in php for expression if($y != $z && $x == $y && $x == $z) to give true value for some value of x,y and z [on hold]

I came across a question which i am not able to answer , Quetion:

You have this PHP function:

function almighty_function($x, $y, $z) {
  if ($y != $z && $x == $y && $x == $z) {
    return "Success!";
  }
  return "FAIL!";
}

Please provide set of values for $x, $y and $z for function to return "Success!". Explain your solution.

Aucun commentaire:

Enregistrer un commentaire