Maybe later I'll tell you how I did! (No I didn't get them all right)
thanks for reposting this in devchat, got 16 wrong! Would be cool to run this against latest php stable.
Have anybody checked if the test isn't lying with its correct answers?
I got zero wrong. But I got zero right either, because I did not take the test, I'm no fool.
Would it do any good to say that I rushed it a bit? No? Oh well....
I got the post/pre increment ones backwards (I am a giant dork), which was 4 wrong
PHP: where true is false.
$ php -r "var_dump(true == '00'); var_dump('00' == '0'); var_dump('0' == false);" bool(true) bool(true) bool(true)
I think you mean "PHP: where == is not an equivalence relation."
Given that == does type juggling rules, that is not very surprising. It is quite surprising the type juggling includes comparing two strings as numerical values if possible. Moral: if you meant to compare strings in PHP, use === with casts to string as necessary.
11 Wrong, some surprising ones in there.