I tried to create a class with the properties like so:
class foo{
private $dbFields['test']=array("mobilePhone","address");
private $dbFields['test2']=array("mobilePhone","address",'colour');
}
but its not valid.
PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in
I had to do this which has the same result; but is less friendly for me editing in the future
class foo{
private $dbFields=array('test'=>array("mobilePhone","address"),'test2'=>array("mobilePhone","address",'colour'));
}
is there anyway to achieve the original structure or something simular?