09.11.2017, 18:57
You array has 3 rows, 2 columns and each field is an array, although 1, 2, 3 don't look like one
Lets add the brackets to make it clear, it should look like that
With that it should be clear that you need to do
printf does work because it only gets the address, you could even print someArray or someArray[0] if you want
Lets add the brackets to make it clear, it should look like that
PHP код:
new someArray[3][2][] =
{
{"One" , {1}},
{"Two", {2}},
{"Four", {3}}
};
// or like that if you represent the string as array
new someArray2[3][2][] =
{
{
{'O', 'n', 'e', EOS},
{1}
}, {
{'T', 'w', 'o', EOS},
{2}
}, {
{'F', 'o', 'u', 'r', EOS},
{3}
}
};
PHP код:
new someVar = someArray[0][1][0];