You could just have put newlines in the returned string, you know. There are also several better ways to "return" multiple values from a function. Using a callback function immediately comes to mind, but I'd say even global variables is cleaner than this solution.
|