Versatile printing

From , 3 Years ago, written in PHP, viewed 223 times.
URL https://pastebin.vip/view/900c563b
  1. /**
  2.  * 打印输出数据|show的别名
  3.  * @param void $var
  4.  */
  5. function p($var)
  6. {
  7.     if (is_bool($var)) {
  8.         var_dump($var);
  9.     } else if (is_null($var)) {
  10.         var_dump(NULL);
  11.     } else {
  12.         echo "<pre style='position:relative;z-index:1000;padding:10px;border-radius:5px;background:#F5F5F5;border:1px solid #aaa;font-size:14px;line-height:18px;opacity:0.9;'>" . print_r($var, true) . "</pre>";
  13.     }
  14. }

Reply to "Versatile printing"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website