Re: PHP Array Literals

From: Date: Sun, 29 Jan 2006 20:58:30 +0000
Subject: Re: PHP Array Literals
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-21725@lists.php.net to get a copy of this message
Robert Deaton wrote:
On 1/29/06, James Crane <chiology@gmail.com> wrote:
Then why don't we have these: $i = integer(5); $f = float(4.5); $s = string("foo");
Perhaps because any sane person will know without reading a manual, that " delimits a string, a number without a decimal is an integer, and a number with a decimal is a floating point number.
In the same way that any sane person would know that array() indicates an array? J

« previous php.internals (#21725) next »