# Multidimensional Arrays

**URL:** <https://forum.kirupa.com/t/multidimensional-arrays/87131>\
**Category:** random\
**Created:** [April 18, 2005, 6:35pm UTC](https://forum.kirupa.com/t/multidimensional-arrays/87131 "2005-04-18T18:35:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [April 18, 2005, 6:35pm UTC](https://forum.kirupa.com/t/multidimensional-arrays/87131/1 "2005-04-18T18:35:17Z")

</div>

Hello!  
I’t trying to create a multidimensional array of the following kind:

let’s say we have a list of cities:  
Rome, Paris, London  
and a list of neighborhoods for each(i.e: rn1,rn2,…for Rome)  
How can I create one array that holds all that information like:

var travel = new Array()  
//and the travel array hold information like:  
Rome(rn1,rn2,rn3),Paris(pn1,pn2),London(ln1,ln2,ln3,ln4)

so later I could access travel[0] = Rome, travel[1] = Paris  
and…  
travel[0][0] = rn1  
travel[1][1] = pn2

or something like it…  
thanks!  
:pac:
