Hi

I was wondering why you can't get an multi dimension array out of the config
object

if I have this config:
<data>
 <live>
   <arrays>
     <data>1</data>
     <data>2</data>
     <data>3</data>
 </live>
</data>

and do this:

$config = new Zend_Config(new Zend_Config_Xml('config.xml',"live"));

var_dump($config->arrays);

I get this response

array(1) {
 ["data"]=>
 string(1) "3"
}


but i want to get

array(1) {
 ["data"]=>
   array(3){
    [0]=>
     string(1) "1"

    [1]=>
     string(1) "2"

    [2]=>
     string(1) "3"

   }
}


is this possible. or  can i do this in any other way?

/Andreas Sundqvist
-------------------------------------------------------------
Andreas Sundqvist

[EMAIL PROTECTED]
Mobile: (046)768644968
Homepage: http://www.sunkan.se
MSN: klassicd

Reply via email to