print_rCytat
If you would like to capture the output of print_r(), use the return parameter. When this parameter is set to TRUE, print_r() will return the information rather than print it.
Cytat
When the return parameter is TRUE, this function will return a string. Otherwise, the return value is TRUE.