This quick tip allows you to check a variable against multiple values in a much quicker and neater way than nesting if statements or using multiple ors (||). It makes use of an array definition as well as the "in_array" function. If you have any questions, comments or suggestions, leave them bellow!
No comments:
Post a Comment