Although I have found some discussion about the general differences between echo and print_r() in PHP (for example, What's the difference between echo, print, and print_r in PHP?), all the tutorials and answers I've come across for AJAX calls say PHP should echo the results, and then die.
In an experiment returning a simple string, I didn't see any difference between the two when displayed using console.log.
Is there any significant difference in what is returned to the AJAX call when using echo vs print_r. Not that I see anything wrong with using echo, but I did get unexpected results when I used print_r earlier in the function for debugging.