Store 3 values
I need to store 3 values in an array. Not sure what would be the best approach for this.
For example:
If it was just two sets of data, I could have done something like this. PHP Code:
|
Re: Store 3 values
maybe use an enum
PHP Code:
|
Re: Store 3 values
Can you show me an example with multiple text values?
|
Re: Store 3 values
|
Re: Store 3 values
Quote:
PHP Code:
PHP Code:
|
Re: Store 3 values
Quote:
|
Re: Store 3 values
Quote:
I just started working with enums much more intense and very like them, maybe I just haven't encountered the disadvantages yet. Maybe a StringMap or KeyValues or just some more arrays (like sidezz mentioned above) would fit your needs better. No idea how expensive the individual classes are. |
Re: Store 3 values
Enumstructs are discouraged and are not available in modern syntax.
|
Re: Store 3 values
Quote:
|
Re: Store 3 values
You could use Dynamic as per my Signature.
|
All times are GMT -4. The time now is 17:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.