Check if 2d array contains no data
How can I check if a 2d array has data stored in the first dimension or not. I thought checking if it is 0, but that gives me a compile error "array must be indexed (variable "array2d")".
Example: Code:
|
Re: Check if 2d array contains no data
Try this...to compare strings use equal() or contain() :wink:
Code:
new array2d[33][128];Code:
new array2d[33][128]; |
Re: Check if 2d array contains no data
I believe you can just do this:
Code:
|
Re: Check if 2d array contains no data
@ v3x: that will work only for array[0] :wink:
|
Re: Check if 2d array contains no data
@_Master_
I think v3x is saying this: PHP Code:
|
| All times are GMT -4. The time now is 10:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.