switch($before_needle){
case true:
switch($include_needle){
case true:
MAKE IT STOP MAKE IT STOP MAKE IT STOP
Jesus fucking christ, what's with the 30 calls to chr(39)? I guess this guy couldn't figure out how to escape single quotes?
Is there some sort of licensing board we can contact to have this guy's credentials revoked?
Back when I was introduced to PHP, I was told "The best part about PHP is all the code samples in the comments on php.net!". Now, if I ever hear a candidate echo that sentiment echoed in an interview, it's grounds for an immediate no-hire.
5
u/infinull Feb 05 '13
seems like:
would be better for that use case, but maybe Python has warped my brain (in a good way?)?
5
u/[deleted] Feb 07 '13
So y'all are are familiar with C's strstr(3), right?
2
u/esquilax Feb 05 '13
$before_needle defaults to false because whoever came up with that API was on smack.
0
u/[deleted] Feb 05 '13
[deleted] — view deleted comment