tuhin18003/advance-var-dumper
Composer 安装命令:
composer require tuhin18003/advance-var-dumper
包简介
Advance way of dumping PHP variables
README 文档
README
The Advance Var Dumper component provides mechanisms for walking through any arbitrary
PHP variable. It provides a better pre_print() function that you can use instead
of print_r().
Install
Via Composer
$ composer require --dev tuhin18003/advance-var-dumper
Usage
require './vendor/autoload.php';
It takes 2 parameters. First one is your data ( array/ object/ string) and second can be any string as flag!
pre_print( $data = '', $text = '' )
$arr =['test','te1','hello'];
pre_print($arr);
Output
------------------------------DEBUG MODE START------------------------------
File Name: E:\webApps\xampp-new-64\htdocs\my-websites\custom-scripts\myScripts.php
Line No: 30
Array
(
[0] => test
[1] => te1
[2] => hello
)
------------------------------DEBUG MODE END------------------------------
Credentials
- Created by - M.Tuhin
统计信息
- 总下载量: 230
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-26