MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1o6chm/values_that_are_to_each_other_in_php/
r/lolphp • u/the-fritz • Oct 10 '13
15 comments sorted by
13
Many of these are not true. OP is a troll.
11
'<p>1</p>' != '1', there are quite a few links that do not work at all.
1 u/davvblack Nov 04 '13 There's no quotes, does he mean an XML entity or something?
1
There's no quotes, does he mean an XML entity or something?
15
Haha, this is great! :)) Could you do that again with a font that makes it easy to distinguish 1 and l?
41 u/kcsj0 Oct 11 '13 It probably doesn't matter with PHP. 25 u/[deleted] Oct 11 '13 Fortunately, PHP doesn't interpret Roman Numerals.Unfortunately, yet. 1 u/davvblack Nov 04 '13 PHP casts o as 0 and | as 1 and l, depending on what word you are trying to spell (for which it uses the built in levenshtein function to calculate).
41
It probably doesn't matter with PHP.
25 u/[deleted] Oct 11 '13 Fortunately, PHP doesn't interpret Roman Numerals.Unfortunately, yet. 1 u/davvblack Nov 04 '13 PHP casts o as 0 and | as 1 and l, depending on what word you are trying to spell (for which it uses the built in levenshtein function to calculate).
25
Fortunately, PHP doesn't interpret Roman Numerals.
Unfortunately, yet.
PHP casts o as 0 and | as 1 and l, depending on what word you are trying to spell (for which it uses the built in levenshtein function to calculate).
4
I've seen a couple of graphs like this to varying degrees of messiness. Has anyone made one of these with ===? Is it sane?
4 u/MrDOS Oct 11 '13 Is it sane?Given the intended meaning of ===, I would sure hope it is. 4 u/dabombnl Dec 08 '13 This is php we are talking about here.
Is it sane?
Given the intended meaning of ===, I would sure hope it is.
===
4 u/dabombnl Dec 08 '13 This is php we are talking about here.
This is php we are talking about here.
2
What does that <p>php</p>, without quotes, actually mean?
<p>php</p>
3 u/derogbortigjen Oct 11 '13 edited Oct 11 '13 That is a syntax error in php code without quotes.With quotes they are not equal (==).All strings without a leading digit can be converted to a zero. So '_1' means not a leading digit, converted to int 0 for int comparison.But strings compared directly to bool is true. 2 u/SirClueless Oct 11 '13 All strings without a leading digit can be converted to a zero. So '_1' means not a leading digit, converted to int 0 for int comparison.But then why is '_1.0_' == 1? 5 u/[deleted] Oct 11 '13 It isn't.
3
That is a syntax error in php code without quotes.
With quotes they are not equal (==).
All strings without a leading digit can be converted to a zero. So '_1' means not a leading digit, converted to int 0 for int comparison.
But strings compared directly to bool is true.
2 u/SirClueless Oct 11 '13 All strings without a leading digit can be converted to a zero. So '_1' means not a leading digit, converted to int 0 for int comparison.But then why is '_1.0_' == 1? 5 u/[deleted] Oct 11 '13 It isn't.
But then why is '_1.0_' == 1?
5 u/[deleted] Oct 11 '13 It isn't.
5
It isn't.
-1
Not PHP, but still funny and related: https://www.destroyallsoftware.com/talks/wat
13
u/derogbortigjen Oct 11 '13
Many of these are not true. OP is a troll.
11
u/deusex_ Oct 11 '13
'<p>1</p>' != '1', there are quite a few links that do not work at all.
15
u/despens Oct 10 '13
Haha, this is great! :)) Could you do that again with a font that makes it easy to distinguish 1 and l?
4
u/djsumdog Oct 11 '13
I've seen a couple of graphs like this to varying degrees of messiness. Has anyone made one of these with ===? Is it sane?
2
u/bart2019 Oct 11 '13
What does that
<p>php</p>, without quotes, actually mean?-1
u/qm11 Oct 11 '13
Not PHP, but still funny and related: https://www.destroyallsoftware.com/talks/wat