Results 1 to 4 of 4
  1. #1

    Simple php question, do switch numbers have to be in order?

    I tried looking up this info and didn't see any mention of it. I ask since I am commenting out some switch commands numbered one through 19 and I wonder if that would cause a problem if it skips from 14 to 17 for example. I tested this and everything seemed to work fine but I wanted to make sure it was not causing a problem I am not aware of. Thanks.

  2. #2
    Join Date
    Nov 2003
    Posts
    682
    You can put them in any order. PHP will look at them from top to bottom.

  3. #3
    Thanks for the help

  4. #4
    Join Date
    Nov 2003
    Posts
    682
    No problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •