Your average PHP developer ladies and gentoomen
>>60651419
>verified
explains alot
Can you explain what's going on in this to someone with no PHP experience?
>>60651627
I would also like to know why this is being posted on social media.
>>60651627
The man in the image is retarded. Don't be retarded.
>>60651476
"verified" lost its meaning long ago. I don't look for verified anymore desu senpai baka
>>60651627
>Calling the same method on the same variable over and over instead of once before all of the conditionals
>abusing conditionals
>could easily be rewritten with an in_array() call instead
>>60651627if num == 1:
print "even"
else if num == 2:
print "odd"
else if num == 3:
print "even"
else if num == ...
>>60651419
How does that cause a bug though? Doesn't it just set the same value to the same thing twice?
>>60651732
No clue, I was just amused by his terrible glut of if statements
>>60651419
>muh if statements
You guys do realize that your precious built-ins do literally the exact same thing when called on an array right? Try opening a book for once.
why doesnt he just put them all in one "if" statement if there gonna be equal to 3 anyways?
>>60651688
>>60651690
Ah, makes more sense to me now. Sorry, I'm a peasant when it comes to programming.
Thanks!
>>60651861
Female programmers man.