Hi Martin,

> I would like to know how can I put ' character to case in switch...
>
> switch ($action) {
>        case about:
>        code
>        break;
> 
>        case what's new: <-- i want this...
>        code
>        break;

Try wrapping the cases in quotes:

switch ($action) { 

  case "about": 
    code
    break;

  case "what's new": 
    code
    break;

}

HTH
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to