[HELP] Getting num from const depending on condition - easy way
So, I won't explain much, because I simply don't know how to explain it properly. Will just give you an example and ask you - is there some better way to get the same result, because I want to make this for pretty huge numbers.
PHP Code:
|
Re: [HELP] Getting num from const depending on condition - easy way
A loop is the only alternative that I can think of.
|
Re: [HELP] Getting num from const depending on condition - easy way
Yes, but the loop returns all of the numbers inside the const... And in that case, it always returns the last number (because I can use only one number - in other case all of them are returned and used).
|
Re: [HELP] Getting num from const depending on condition - easy way
Quote:
|
Re: [HELP] Getting num from const depending on condition - easy way
Is that correct enough? :D
PHP Code:
|
Re: [HELP] Getting num from const depending on condition - easy way
Quote:
|
Re: [HELP] Getting num from const depending on condition - easy way
Can't test right now.... If I could, I would test it and post the results. And that's why I posted it here withouth knowing.
|
Re: [HELP] Getting num from const depending on condition - easy way
You can use do while
|
Re: [HELP] Getting num from const depending on condition - easy way
Well, I've never experienced this types of looping. Will search something to learn, but I mostly can't understand nothing from the explanations found, because I can't understand the language itself, with all the termins and that official style of speach... One simple explanation will always be welcome.
|
Re: [HELP] Getting num from const depending on condition - easy way
Correct-me if i am wrong,
PHP Code:
|
| All times are GMT -4. The time now is 21:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.