Strings in enums?
Hello there,
I have been wondering if something like that would be possible: PHP Code:
greetings sake |
Re: Strings in enums?
Enums are used to act as data structures or provide an easier way to declare constants, except for strings/arrays.
How are you trying to use this string? |
Re: Strings in enums?
PHP Code:
PHP Code:
|
Re: Strings in enums?
PHP Code:
|
Re: Strings in enums?
PHP Code:
|
Re: Strings in enums?
Then you can do this:
Code:
|
Re: Strings in enums?
Hmmm... It can be so easy :). Thanks!
|
Re: Strings in enums?
Quote:
|
Re: Strings in enums?
Quote:
|
| All times are GMT -4. The time now is 01:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.