MyBB Hacks

Full Version: PHP "riddle"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm clearly bored writing this post.
Take this PHP function:

PHP Code:
function test_equality($a, $b, $c) {
    var_dump($a==$b, $a==$c, $b==$c);
}

A certain set of inputs ($a, $b and $c) will cause the function to produce the following output:

Code:
bool(true)
bool(true)
bool(false)


Provide one such sample input to the function.

Processing riddle....................................................................
............................................................................................
..............................................................................................
................................................................................................
..................................................................................................
............... Mmm ... like this?

$a = 0
$b = ''
$c = '0'
^ Good job!
Reference URL's