RE: [PHP] PHP Brain Teasers
| From: | Jay Blanchard | Date: | Tue, 03 Jul 2007 14:52:59 +0000 |
| Subject: | RE: [PHP] PHP Brain Teasers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258139@lists.php.net to get a copy of this message | ||
[snip]
> > So I'll double-whammy it with a "Name That Tune" factor:
> >
> > <?php
> > class Thread {
> > var $wheel;
> > function Thread (){
> > $this->wheel = 'roun\'';
> > }
> > }
> > while($wheel = new Thread());
> > ?>
"The wheel goes roun and roun" [sic]
[/snip]
if($x == 0.01 || $x == 1.0){
$y = "in";
}