erlug
[Top] [All Lists]

Re: [Erlug] php array_slice birbello

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] php array_slice birbello
From: Filippo Giunchedi <filippo@xxxxxxxxxxxx>
Date: Sun, 30 Mar 2008 15:29:10 +0200
On Sat, Mar 29, 2008 at 05:15:46PM +0100, Davide Brini wrote:
> On Saturday 29 March 2008, 10:53, Filippo Giunchedi wrote:
> 
> > Al momento no, ma posso portare a testimonianza un'altra cosa buffa:
> >
> > $ echo '<? echo(True); echo(False); echo("\n"); ?>' | php
> > 1
> > $
> 
> Questo e' documentato (tratto da 
> http://it.php.net/manual/en/language.types.string.php#language.types.string.casting):

E' anche documentato che "php" == 0 e' True, che non e' parimenti intuitivo:
http://www.php.net/manual/en/types.comparisons.php

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

Computation has made the tree flower.
-- Alan Perlis

<Prev in Thread] Current Thread [Next in Thread>