Is there a way to see invisible characters like whitespace, newlines, and other non-printing characters in a manner like print_r() ?
Reason is there is some sort of
You could just run your php script, and pipe it straight to hexdump -C
hexdump -C