when using 'echo' in function, why does result appear on previous line?
问题 I wrote up a function that echoed out the id at the otherside of a linked table. when I write in the page that's calling the function-- echo "<br/>getalbumartistfunction: ".get_albumartistid($thisalbum); it returns the artist_id number on the line above where I have that function call. So I went into the function and switched it from 'echo' to 'return' and it now appears right after the colons like I would expect (and is probably more along the lines of what I need). So it works. But I am