Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Crost41083yLol.
Since this clearly isn't your code I don't mind saying I stopped reading after a glance at that code. Need some meatballs with this spaghetti. -
@craig939393 I was unsure about the first but the second was a bummer! Pure macaroni.
-
One can use the result of the x==y expression instead of the ternary ? true : false there however the x == 'true' needs to stay
Also as a side note: one should use === instead of == to compare value AND type
I found this weird line in a library while debugging, though I really don't know php that well but wouldn't this condition return a boolean anyway?
rant
php library