7

If only there were some sort of function to determine if a value was in an array

Comments
  • 0
    Im actually more upset that they chose to use such nasty variable names for the loops.
  • 0
    What is this? Php4 Legacy Code?
  • 1
    @Data-Bound
    It was written sometime in the past year by someone who has been coding longer than I've been alive
  • 2
    *hugs his PHP code* you see this? I will never do this to you...
  • 3
    Ahh, Hungarian Notation. For when you can't remember what type of data you are storing in that "count" variable.
  • 0
    At least he used "break;" to stop the for when an occurrence has been found!
  • 0
    @crystalclear that explains a lot, probably a guy with C(++) background. Sizeof instead of count and the lack of foreach imply that he's not friend with new fancy stuff
  • 0
    @Data-Bound
    But he's been doing PHP since 2009
  • 0
    @crystalclear Hard to drop old habits. I still put semicolons in python...
Add Comment