Posted by Tim Streater on 10/11/37 11:37
In article <dqgb7t$2it0$1@news.imp.ch>,
"Stefan Mueller" <seekware-remove-@yahoo.com> wrote:
> How do I have to define a range in 'case'? I tried '> 0' but it's not
> working.
>
> switch ($my_number) {
> case 0:
> ...
> break;
>
> case > 0:
> ...
> break;
> }
Look at:
http://www.php.net/manual/en/control-structures.switch.php
-- tim
Navigation:
[Reply to this message]
|