Print_r with style

/** * Print_r with style * * @param string $stuff * */ function print_rf($stuff){ echo '<pre>', htmlspecialchars(print_r($stuff, true)), "</pre>\n"; }

1 Response

Good code!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.