Re: PHP Array Literals
| From: | Robert Deaton | Date: | Sun, 29 Jan 2006 20:55:31 +0000 |
| Subject: | Re: PHP Array Literals | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21724@lists.php.net to get a copy of this message | ||
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.
--
--Robert Deaton
http://somethingunpredictable.com