On my jQuery ajax function, I output the data returned from a PHP script like this:
echo 'Please do this again.';
Please do this again.0
Quick Answer (I will explain more later):
return; you produce that extra output, that gets interpreted to
Eighter remove that
return; or replace it with an
exit; to stop php from executing.
Other possibility is to do
return 'Please do this again.'; if you are outside of functions.