On 04/05/2011 10:28 AM, Richard Quadling wrote:
> Hi.
>
> I just wanted to quickly see if PHP supported ranges in its
> switch/case statement (http://en.wikipedia.org/wiki/Ellipsis)
>
> $s = intval(date('s'));
> switch($s)
> {
> case 0...9 : echo 'Between 0 and 9'; break;
> c
On 5 April 2011 16:28, Richard Quadling wrote:
> Hi.
>
> I just wanted to quickly see if PHP supported ranges in its
> switch/case statement (http://en.wikipedia.org/wiki/Ellipsis)
>
> $s = intval(date('s'));
> switch($s)
> {
> case 0...9 : echo 'Between 0 and 9'; break;
>
2 matches
Mail list logo