CodeIgniter Forums
I have a problem with multi array, help me??? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: I have a problem with multi array, help me??? (/showthread.php?tid=44212)



I have a problem with multi array, help me??? - El Forum - 08-07-2011

[eluser]memVN[/eluser]
Simple , I have a array
$a = array(array("a","b"), "x"=>array("0","1","2"), array("X","Y"));
But I can't read it's, who can help me? Thanks


I have a problem with multi array, help me??? - El Forum - 08-07-2011

[eluser]CodeIgniteMe[/eluser]
Wshy do you need this such complex array?


I have a problem with multi array, help me??? - El Forum - 08-07-2011

[eluser]Jaketoolson[/eluser]
that's not a complex array. I've stored far more 'complex'. Array's are great tools.
Code:
array (
  array(
    a,
    b),
  x  =>  array(
      0,
      1,
      2
   ),
  array (
    x,
    y
  )
)



I have a problem with multi array, help me??? - El Forum - 08-07-2011

[eluser]CodeIgniteMe[/eluser]
Arrays are great tools, but objects are better