how to declare a class array constant
Posted: Tue Oct 30, 2007 10:33 am
I dont seem to be able to declare a class array constant. I want to be able to do myclass::propertyTypes. What is the right syntax? or is it not possible?
Code: Select all
[php]
class myclass
{
const $propertyTypes = array(
'S'=>'Single Family',
'C'=>'Condominium',
'P'=>'Planned unit development',
'2'=>'2 to 4 family',
'M'=>'Multi Family (5 or more)',
'D'=>'deMinimus PUD',
'O'=>'Other',
'A'=>'Co-operative apartment'
);
}
[/php]