Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-24-2009, 08:12 AM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Multi-Dimensional Arrays

Just a quick question,
Are there 3x-dimensional arrays? I know there are 2x-dimensional arrays (this.array[0][2]), but I'm not sure if there are 3x-dimensional arrays (this.array[0][2][1]). I'm working on a database that I don't really want to reorganize without knowing this first.

For example:
PHP Code:
this.array = {
  { 
"Boo","Bar",{"BazBoo","BazBar"},"BooBar" },
  { 
"Bar","Baz",{"BooBar","BooBaz"},"BarBaz" }
}
return 
this.array[0][2][1]; 
Would the returned string be BazBar?

Last edited by Novice; 06-24-2009 at 08:22 AM.. Reason: accidentally posted early :o
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.