Re: Array Symbol Suggestion
| From: | Per Jessen | Date: | Wed, 12 Jan 2011 19:58:17 +0000 |
| Subject: | Re: Array Symbol Suggestion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310704@lists.php.net to get a copy of this message | ||
sono-io@fannullone.us wrote:
> I'd like to make a suggestion for a change, or possibly an addition,
> to the PHP language.
>
> I'm learning PHP and have been very excited with what it can do in
> relation to HTML. But when I got to the part about arrays, I was
> disappointed to see that they are designated with a $ the same as
> other variables. I was learning Perl before I switched, and it uses
> the @ sign to designate an array. That makes it a lot simpler to see
> at a glance what is an array and what isn't - at least for beginners
> like me.
>
> Has there been any talk of adopting the @ sign for arrays in PHP? Or
> is that symbol used for something else that I haven't read about yet?
>
> What is the proper channel for making suggestions like this?
The php-development mailing list. What you're suggesting is a pretty
fundamental change, don't be disappointed if it is not met with
universal approval.
--
Per Jessen, Zürich (5.9°C)