Login   Register  
PHP Classes
elePHPant
Icontem

not working for multidimentional array

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Array to Object converter  >  All threads  >  not working for multidimentional array  >  (Un) Subscribe thread alerts  
Subject:not working for multidimentional array
Summary:not working for multidimentional array
Messages:1
Author:shiam kumar
Date:2011-03-09 03:00:02
 

  1. not working for multidimentional array   Reply  
Picture of shiam kumar
shiam kumar
2011-03-09 03:00:05
$testArr=array('key1'=>'value1',
'key2'=>'value2',
'key3'=>array('0'=>'value30',
'1'=>'value31'));

$resultsObj = new toObj($testArr);


result:

toObj Object
(
[_variablesCount:private] => 7
[key1] => value1
[key2] => value2
[key3] => toObj Object
(
[_variablesCount:private] => 4
[1] => value31
)

)


missing of first key in [key3] => toObj Object