I have a problem: I need to turn an array into a string and pass it to a function for debugging output.
I cannot directly output the string with print_r, I need to join it with some other strings and pass it to a function.
Google did not bring any results that display the array in a human-readable way without directly printing them. I need a string which I can pass to another function.
$str = print_r($someData,true)