Getting data from an array
#4

Quote:
Originally Posted by AstroPoid
Посмотреть сообщение
Doesn't seem helpful on multi arrays at all. i used to get data easily from 1 array , and even 2 but i don't know how to get data from the first array instead of the second one.
It is helpful. It's exactly the same thing for one, two, three or four array dimensions.
PHP код:
new Array1D[2],
    
Array2D[1][3],
    
Array3D[6][7][8];
Array1D[0] = 1000;
Array2D[0][2] = 54;
Array3D[4][5][2] = 97451
When it comes enum, you have to replace the index by the variable's name.
PHP код:
enum E_TEST
{
    
value_random,
    
something_else
};
new 
Array3D[30][99][E_TEST];
Array3D[20][50][value_random] = 99
Reply


Messages In This Thread
Getting data from an array - by AstroPoid - 25.02.2018, 21:27
Re: Getting data from an array - by Dayrion - 25.02.2018, 21:30
Re: Getting data from an array - by AstroPoid - 25.02.2018, 21:34
Re: Getting data from an array - by Dayrion - 26.02.2018, 07:32

Forum Jump:


Users browsing this thread: 1 Guest(s)