Re: PHP Brain Teasers
| From: | Colin Guthrie | Date: | Wed, 27 Jun 2007 09:20:45 +0000 |
| Subject: | Re: PHP Brain Teasers | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257837@lists.php.net to get a copy of this message | ||
Stut wrote:
> Surely this should be...
>
> function x()
> {
> static $count = 0;
> $count++;
> switch ($count)
> {
> case 1: return 'bitten';
> case 2: return 'shy';
> }
> return '';
> }
:p