php - Expand ini settings for zend -
i'm having following ini setting file, named networks.ini:
[networks1] networks[] = 'twitter' networks[] = 'facebook' networks[] = 'google' [networks2 : networks1] networks[] = 'linkedin'
is there way array include networks2 both networks1 , networks2 values in same array? when try
$cfgnetworks = new zend_config_ini(path_to_ini .'networks.ini', 'networks2'); print_r($cfgnetworks->networks->toarray());
it returns linkedin network name only.
i don't think can merge arrays way. can try explicitly add array keys
[networks1] networks.twitter = 'twitter' networks.facebook = 'facebook' networks.google = 'google' [networks2 : networks1] networks.linkedin = 'linkedin'
Comments
Post a Comment