function boost_print_r in Boost 7
Same name and namespace in other branches
- 6 boost.module \boost_print_r()
Returns a nice html formatted version of print_r.
Parameters
$data:
Return value
string
2 calls to boost_print_r()
- boost_deliver_html_page in ./
boost.module - Capture error conditions.
- boost_in_cache_dir in ./
boost.module - Verify that the operation is going to operate in the cache dir.
File
- ./
boost.module, line 1357 - Caches generated output as a static file to be served directly from the webserver.
Code
function boost_print_r($data) {
return str_replace(' ', ' ', nl2br(htmlentities(print_r($data, TRUE))));
}