Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. wuha wuha Web Development

    !webdev is there a way to make multiple statements per case inside a switch statement? for example: case "x": $foo = 1, $bar = 2; #php

    Wednesday, 01-Jul-09 14:41:19 UTC from web
    • bestform bestform

      @wuha using "break"? http://is.gd/1k5Eg

      Wednesday, 01-Jul-09 14:45:56 UTC
    • wuha wuha bestform

      @bestform: think that's not the point. I wanna declare several statements for ONE case. So eg. case "apple": $meat = 0, color = "red"

      Wednesday, 01-Jul-09 14:53:26 UTC
    • Shu Chen Shu Chen

      @wuha that's default behavior. stick as many statements in each block as you please.

      Wednesday, 01-Jul-09 17:19:18 UTC
    • Sebastian Hoß Sebastian Hoß

      @wuha i don't know about php but can't you use braces? like: case "x": {statement; statement;}

      Wednesday, 01-Jul-09 17:39:32 UTC

Site notice

  • API
  • Status

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal