Re: Array Symbol Suggestion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2011-01-12 at 12:23 -0800, sono-io@xxxxxxxxxxxxx wrote:

> Thanks for all the responses to my suggestion.  I realize this would be a major change, so that's why I also mentioned it as an addition to the language.
> 
> I'm sure it's just what you're used to, but still being new to all this, it just makes sense (to me anyway) to have different symbols for different variable types:
> $scalar
> @array
> #hash
> 
> Since the @ sign is already reserved, maybe there's another symbol that would work better?  I don't know.  These are just ideas that I came up with while reading and I thought I'd throw it out there to see what others thought.
> 
> I like the idea of a naming convention, so that's what I'll do in my scripts.  I also appreciate the heads up on is_string(), is_array(), and var_dump().
> 
> Thanks again,
> Marc


If you check out the manual pages for those functions as well, you'll
see other related functions. I must say, of any language I've used, the
php.net documentation is by far the best, giving plenty of information
and user comments too. It's a resource I still can't do without, and I
reckon even the old hands on this list would say the same.


Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux