1 (edited by lie2815 2007-05-21 19:46)

Topic: functions.php - really annoying

this happened so often now that i have to ask what this means...
every once in a while when i edit something in functions.php, the following error occurs:

Parse error: parse error, unexpected T_VARIABLE, expecting ';' in <mysite>/forum/include/functions.php on line 1104

Looking up the code, you find this:

for ($i = 0; $i  $num_args; ++$i)
    {
        print_r(func_get_arg($i));
        echo "\n\n";
    }

The bold thing... is that legal and why does that cause me trouble and sometimes not?

FluxBB - v1.4.8

Re: functions.php - really annoying

for ($i = 0; $i < $num_args; ++$i)

That should be more correct.