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)
?php
$s = intval(date('s'));
switch($s)
{
case 0...9 : echo 'Between 0 and 9'; break;
case
On 5 April 2011 16:28, Richard Quadling rquadl...@gmail.com wrote:
Hi.
I just wanted to quickly see if PHP supported ranges in its
switch/case statement (http://en.wikipedia.org/wiki/Ellipsis)
?php
$s = intval(date('s'));
switch($s)
{
case 0...9 : echo 'Between 0 and 9';
2 matches
Mail list logo