C
Ciaran
Im a php coder - not really used to javascript. Can someone please
tell me how to assign labels to array elements and then call them by
the index?
var mycars = new Array(3)
mycars['bigone'] = "Saab"
mycars['biggerone'] = "Volvo"
mycars[2] = "BMW"
document.write(mycars[0]);
is printing nothing when in php the same idea would spit out "Saab"
Cheers,
Ciarán
tell me how to assign labels to array elements and then call them by
the index?
var mycars = new Array(3)
mycars['bigone'] = "Saab"
mycars['biggerone'] = "Volvo"
mycars[2] = "BMW"
document.write(mycars[0]);
is printing nothing when in php the same idea would spit out "Saab"
Cheers,
Ciarán