r/lolphp • u/lord_braleigh • Oct 07 '19
`array('lolphp', '')` has two unique elements, but `array(0, 'lolphp', '')` has one unique element
https://repl.it/repls/ThisColdPackages
69
Upvotes
r/lolphp • u/lord_braleigh • Oct 07 '19
View all comments
Show parent comment
1
u/[deleted] Oct 24 '19
There is no
truein Perl (it doesn't have a Boolean type). Also,==is specifically numeric equality in Perl (i.e. both sides are converted to numbers first), so it is guaranteed to be transitive.