How to format 2D Array?
Hi, I'd like to know how to format a 2D array.
I tried: PHP Code:
error: 032: array index out of bounds (variable "2DArray") error: 032: array index out of bounds (variable "2DArray2") Best regards. |
Re: How to format 2D Array?
If you find a solution for your problem you should post it instead of blanking your thread.
That way others doing the same mistake find it and can learn from it. |
Re: How to format 2D Array?
Quote:
|
Re: How to format 2D Array?
For the ones that are still trying to find a solution, sizeof(MyArray) will retrieve the maximum values that can be stored in the array and sizeof(MyArray[]) will give the maximum length of the value in the array.
|
Re: How to format 2D Array?
But you can't compile the plugin if you use variables with a name starting with a number.
This code will compiled: PHP Code:
|
Re: How to format 2D Array?
Hi.
Quote:
Also: I didn't use sizeof() to spare some time. And I think without it it is faster as well... Quote:
Also I want to say that the title might be misleading since it isn't about formatting but arrays. I guess, I picked the title because I was thinking about formating. Greets. |
Re: How to format 2D Array?
Quote:
|
Re: How to format 2D Array?
Quote:
|
All times are GMT -4. The time now is 09:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.