echo or return? [duplicate]

Functions can only return one value. Change all the echo statements in your tweet function to concatenate a string, then return the string at the end of the function.