Jump to content

multidimesional array


lokesh_kumar_s

Recommended Posts

hi i am having some problem

 

i am using two dimensional arrays

 

user[$userId][$codes] both userId and codes are arbitrary

 

i am storing somthing in this multidimensional array and to retrieve using

$sub="";

foreach(user as usr)

{

foreach(usr as cds)

{

//here i want the value of $codes how can i retrieve that

}

}

for example

if

user[01][123]=xxx

then i need 123 as a variable i want it to concatinate to $sub

please help

 

Link to comment
https://forums.phpfreaks.com/topic/154612-multidimesional-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.