You're redeclaring it again somewhere else.. what part of that don't you get?
You can only declare clean() one time.. in the entire program.
Printable View
You're redeclaring it again somewhere else.. what part of that don't you get?
You can only declare clean() one time.. in the entire program.
What do you mean only one time? You mean I can only do function clean() {} once? not clean($abc) once right?
Yes, you can only declare the function (function clean() {) once.
I only declared it once... Should I post all of config.php?
#1, why are you declaring your functions in config.php, and #2: it wouldn't say that if you haven't declared it elsewhere.
Declaring as in setting it (function name() { blah blah blah }) right? Well why not?
And this causes the error how...
It doesn't, and I never once said you did, I was just asking why the hell you were declaring them there.
And then I said that the error wouldn't be caused, unless you were declaring the functions somewhere else.. so somewhere you're re-declaring the clean() function.
BASICALLY
HES SAYING THIS
In config you got
function Clean( $str )
{
}
and in another location you got a function called clean
and its like having a fight and php doesnt like that.