Christopher Bergin Posted August 21, 2012 Share Posted August 21, 2012 I tried to include the spam_scrubber function within the validation block of code and the parser didn't seem to like it.(PHP 5.2.17) I relocated it at the top of the script and it worked. Just wondering. Link to comment Share on other sites More sharing options...
HartleySan Posted August 22, 2012 Share Posted August 22, 2012 Functions must be defined before you can use them. That have something to do with it? Link to comment Share on other sites More sharing options...
Larry Posted August 22, 2012 Share Posted August 22, 2012 No, functions in PHP do not need to be defined earlier in the script than they are used. Link to comment Share on other sites More sharing options...
HartleySan Posted August 22, 2012 Share Posted August 22, 2012 I stand corrected. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts