27.12.2018, 17:33
PHP код:
new f = MAX_OBJ+1;
for(new a = 0; a < MAX_OBJ; a++)
PHP код:
new str[128], i;
for (i = 0; i < strlen(str); i++) if (str[i] == '_') str[i] = ' ';
1st one:
f = MAX OBJECTS + 1
a = MAX OBJECTS
2nd one:
i = length of str
if str[i] has a _ replace it with a SPACE
Is that right? Or am I missing something?
And what would these be used for? Why would someone want to use these?
Because from what I can see "a" basically equals "MAX_OBJ" so why would someone want to use "a" instead of "MAX_OBJ"? And if they did want to use "a" instead why not just do this:
PHP код:
new a = MAX_OBJ;