PHP Basics: Switch


Whеn IF statements аrе becoming complex, switch offers a block style match tο dο a block οf code depending οn thе participation expression.

9 Responses to “PHP Basics: Switch”

  • MoonWerewolf says:

    i dint now about default: :D

  • scikidus says:

    No problem, least I can do. I want to thank you immensely for this video series. Two days ago, I knew nothing about PHP, and now I have written a script which pulls numbers off of several webpages and tallies them.

    Why am I doing this? I am helping with a fundraiser, but the fundraiser is spread over several websites. This lets us see exactly how much money has been raised, updating every 60 seconds.

    Thank you again!

  • phpacademy says:

    Thanks for letting me know! I’ve amended this now…

  • scikidus says:

    By the way, you’ve made a typo in the title of this video

  • tussu111 says:

    Well, yeap I’m learning by your videos now :]

  • MySweden says:

    YOu are a cool guy and I really delight in watching your videos… keep it up!

  • chjustin69 says:

    Also for those with the error like the guy below me make sure you spell your switch proclamation “switch”

  • chjustin69 says:

    I haven’t used switch since basic… I honestly forgot what it did and how to use it. This video was fantastic! You clarified it better than my basic teacher!

  • chrisgardeners says:

    is swich spelled that way in the UK or is it Switch? just checking your spelling so people can find the video

Leave a Reply

You must be logged in to post a comment.