Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // printing a variable without the need to view source (firefox)
- function print_a($var, $exit = FALSE)
- {
- print_r("\n");
- print_r("<pre>");
- print_r($var);
- print_r("</pre>");
- if ($exit !== FALSE)
- {
- exit;
- }
- print_r("\n");
- }
- // this will print event the html tags
- function print_b($var, $exit = FALSE)
- {
- ob_start();
- print_r($var);
- $print_r = ob_get_contents();
- ob_end_clean();
- print_r("\n");
- print_r("<pre>");
- print_r(htmlentities($print_r, ENT_QUOTES, 'UTF-8'));
- print_r("</pre>");
- if ($exit !== FALSE)
- {
- exit;
- }
- print_r("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement