You are here: How about const supporting array in future? « PHP Programming Language « IT news, forums, messages
How about const supporting array in future?

Posted by Yarco on 08/02/07 02:55

Array is the very basic type in php i think. So why const keyword
doesn't support such defination grammar?

class Date
{
const char3 = array(1 => 'Jan', ...); // ??
}

So how can i do somthing like c++'s enum?

class Data
{
const Jan = 1;
//...
}

is poor if i want to chanslate number to month name.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация