|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multi dimensional array
Hi all,
I have a problem with multi dimension array. I would like to assing and get value from 2 dimensional array, please help. I need sth like: $arr['id'][0] $arr['id'][1] $arr['name'][0] $arr['name'][1] thanks in advanced. MONY |
|
#2
|
||||
|
||||
|
Can you rephrase your question? Its not clear from your post what you're trying to accomplish, so I'm not sure what to advise.
Thanks.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#3
|
|||
|
|||
|
drgroove,
I mistakenly posted the same thread in 2 forum.Now i've got the answer from PHP forum. It meets my need. To assign value: $arr['id'][0] = "value1"; $arr['id'][1] = "value2"; $arr['name'][0] = "value3"; $arr['name'][1] = "value4"; To display: echo $arr['id'][0]; echo $arr['id'][1]; echo $arr['name'][0]; echo $arr['name'][1]; thank you anyway. MONY Last edited by keomony : September 14th, 2003 at 09:07 PM. |
|
#4
|
||||
|
||||
|
OK - glad to hear you've gotten the solution you needed on this.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Multi dimensional array |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|