Re: character ' in switch

From: Date: Thu, 21 Nov 2002 12:15:24 +0000
Subject: Re: character ' in switch
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125400@lists.php.net to get a copy of this message
try: case "what's new": "Martin Hudec" <corwin@corwin.sk> wrote in message news:6817547960.20021121131122@corwin.sk... > Hello all, > > I would like to know how can I put ' character to case in switch... > > Situation: > > from flash i am getting url: index.php?action=what's new > > i need to pass this thing to switch like: > > switch ($action) { > case about: > code > break; > > case what's new: <-- i want this... > code > break; > > default: > break; > } > > but PHP can't use '....i am thinking about making urlencode() to put > that character to %XX value.... > > any advices? > > > -- > Best regards, > Martin mailto:corwin@corwin.sk >

« previous php.general (#125400) next »