23.01.2017, 22:13
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;
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.
the only tip i can give is to script "one-liners". which basicly means that you should reduce line likes this;
PHP код:
for(new i, len = strlen(itemname); i < len; ++i)
{
itemname[i] = toupper(itemname[i]);
}
// reduceing it to a "one-liner"
for(new i, len = strlen(itemname); i < len; ++i){itemname[i] = toupper(itemname[i]);}