Help|Variables
Hey,
I want to know what the part in bold means : Quote:
|
Re: Help|Variables
I would say that the second one is chars.
PHP Code:
For example you can store player names: PHP Code:
|
Re: Help|Variables
The above code will error if a player connected on slot # 32 since the first dimension is sized 32 which leaves the upper boundary of the array 31, it should be sized 33.
Its called a 2-dimension array. Var[] = 1 dimension Var[][] = 2 dimension For each item in the first dimension you have dimension-2 cells of storage. These are used for storing various types of data and commonly used for string arrays since each letter occupies a cell. Var[ 4 ][ 10 ] Here you have essentially 4 arrays each sized at 10 cells. Here is a graphic I found that may help http://comscigate.com/Books/IntroSed...ay/array2d.png |
| All times are GMT -4. The time now is 19:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.