this is because you are probably executing this code inside of a
function and using
return instead of
echo....taken from the php manual:
"If called from within a function, the return statement
immediately ends execution of the current function, and returns its
argument as the value of the function call...."