Results 1 to 3 of 3

Thread: Quick question

  1. #1

    Thread Starter
    Addicted Member Electro414's Avatar
    Join Date
    Nov 2000
    Location
    Do you know? I don't...
    Posts
    128

    Quick question

    What keywords would I use for multiple if statements? AKA select case in VB.

    I want it in PHP, but it would probably be similar in C/C++.
    thanks

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Do you mean a switch statement?:

    Code:
    switch ($variable) {
      case 5: 
        //dosomething
        break;
      case 6:
        //dosomething
        break
      default:
        //dosomething
    }
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Addicted Member Electro414's Avatar
    Join Date
    Nov 2000
    Location
    Do you know? I don't...
    Posts
    128
    Acctually that is exactily what i meant. thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width