Hello fellow programmers.
I was in this job interview and got a test with different tasks. One of them was the following:
What's the output of
<?php
$x = ($y = true and false);
var_dump($x);
var_dump($y);
?>
the output is the following:
bool(false) bool(true)
could anyone explain me why $x becomes false and $y becomes true?
Thanks in advance,
Faifas