is there a better way of doing this ?
#2

the best way is your way.
the only tip i can give is to script "one-liners". which basicly means that you should reduce line likes this;

PHP код:
for(new ilen strlen(itemname); len; ++i)
{
    
itemname[i] = toupper(itemname[i]);
}
// reduceing it to a "one-liner"
for(new ilen strlen(itemname); len; ++i){itemname[i] = toupper(itemname[i]);} 
i can not recommend to do this while working on a command or to do this to lines which need to be changed more often.
Reply


Messages In This Thread
is there a better way of doing this ? - by TheAngryBird - 23.01.2017, 21:56
Re: is there a better way of doing this ? - by GangstaSunny. - 23.01.2017, 22:13
Re: is there a better way of doing this ? - by TheAngryBird - 23.01.2017, 22:18
Re: is there a better way of doing this ? - by GangstaSunny. - 25.01.2017, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)