Just in case they come up with an uppercase one
-
Here's a small wtf to pass the time. Stumbled on it while going through a coworker's code.
$position = strripos($text,".");
-
You know, the uppercase dot is a colon.
-
Hey, the case-insensitive version checks for stops, full stops, periods and dots, the case-sensitive version is unable to do that!
-
My coworker is better:
[b]this.debugState = someValue.equalsIgnoreCase("0") ? true : false;[/b]
-
-
@vt_mruhlin said:
@derula said:
You know, the uppercase dot is a colon.
On my keyboard it's a greater than.
what is greater than a colon ?
-
@Nelle said:
what is greater than a colon ?
Nearly everything that isn't a digit, dot, minus, comma, ampersand, percent sign, dollarsign, hash, double-quote, exclamation point, space, or a control character.
-
-
@MiffTheFox said:
@Nelle said:
what is greater than a colon ?
Exactly everything that isn't a colon, digit, slash, dot, minus, comma, plus sign, asterisk, right parenthesis, left parenthesis, single quote, ampersand, percent sign, dollarsign, hash, double-quote, exclamation point, space, or a ASCII control character other than "delete".FTFY
-
@Hobson said:
My coworker is better:
this.debugState = someValue.equalsIgnoreCase("0") ? true : false;
Mine is even better :
temp.equalsIgnoreCase("0") ? new Boolean(true).booleanValue() : new Boolean(false).booleanValue()
-
@DOA said:
Here's a small wtf to pass the time. Stumbled on it while going through some of my old code.
$position = strripos($text,".");
FTFY
No need to lie, we won't judge you here.
-
@Nelle said:
what is greater than a colon ?
$ (echo what; echo a colon) | sort
a colon
whatYep. "what" is greater than "a colon".
-
@aihtdikh said:
@Nelle said:
what is greater than a colon ?
$ (echo what; echo a colon) | sort
a colon
whatYep. "what" is greater than "a colon".
I dunno, maybe a kidney or a brain?
-
-
@derula said:
You know, the uppercase dot is a colon.
The dot is also exactly 1/4th of a Paamayim Nekudotayim.
-
@dhromed said:
@Nelle said:
what is greater than a colon ?
Your mother, mayhaps.
That was a rude thing to say, you case-insensitive clod.
-
@savar said:
@derula said:
You know, the uppercase dot is a colon.
The dot is also exactly 1/4th of a Paamayim Nekudotayim.
I think all PHP programmers remember the first time they saw that error.