Re: Re: PHP Brain Teasers
| From: | Larry Garfield | Date: | Wed, 04 Jul 2007 17:31:36 +0000 |
| Subject: | Re: Re: PHP Brain Teasers | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258261@lists.php.net to get a copy of this message | ||
On Wednesday 04 July 2007, tedd wrote:
> Try this:
>
> -(4 * 20 + 7)
>
> tedd
"Four score and seven years ago..." Thanks Abe. :-)
Try this one:
foreach ($actions as $action) {
$actions[] = -$action;
}
This is fun. :-)
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson