bonsaicode / debug
提供改进版 print_r 功能的调试实用类,显示变量类型,以及 trace 和 hex_dump 方法。
1.0.5
2020-05-13 02:47 UTC
Requires
- php: >=7.1.0
README
提供改进版 print_r 功能的调试实用类,显示变量类型,以及 trace 和 hex_dump 方法。
需求
- PHP 7.1 或更高版本
安装
要安装模块,请在控制台中运行以下命令
$ composer require "bonsaicode/debug"
使用
<?php
BonsaiCode\Debug::printR( $mixed );
echo BonsaiCode\Debug::hex_dump( 'This is a test for hex_dump() returning a string.' );
echo BonsaiCode\Debug::trace( [ 'string' ] );
?>