Dompdf\Helpers::pre_r
print_r wrapper for html/cli output
Wraps print_r() output in < pre > tags if the current sapi is not 'cli'. Returns the output string instead of displaying it if $return is true.
Signature
public function pre_r(mixed
$mixed,
[boolean
$return = false] )
Parameters
$mixed
— mixed- variable or expression to display
$return
— boolean
Returns
- string|null