Enums & 2D array
PHP Code:
error log:- Code:
Error: Invalid expression, assumed zero on line 521isnt this a 2D array >> COLORS_DATA[][COLOR_NAME] << |
Re: Enums & 2D array
Quote:
Unsure about the rest of the code but it doesn't make sense. You are inputting something probably problematic. Try inputting in your call_color_menu COLORS_VAR ( the enumeration ) |
Re: Enums & 2D array
im trying to output the color name from ( the 2D array ) and insert it in the display_menu function which require a 2D array ( const menu[][] ) the problem is with my procedure.
|
Re: Enums & 2D array
PHP Code:
|
Re: Enums & 2D array
Quote:
And it actually can be in some conditions..when u passing it into a 2d array param. |
Re: Enums & 2D array
Loop through your array (using the first index) and use copy() to get it into the new array.
|
| All times are GMT -4. The time now is 23:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.