PHP code example of qpfsoft / helper

1. Go to this page and download the library: Download qpfsoft/helper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

qpfsoft / helper example snippets


dump(); // 类型与长度输出
print(); // 易读输出, 适合数组与对象.
echo(); // 原样输出, 带换行.
echor(); // 自适应输出
arrstr(); // 返回数组的字符串, 数组描述将会显示在一行并带有适合的空白.
varStr(); // 返回变量的描述
varArray(); // 返回数组的描述, 有缩进与换行
varObject(); // 返回对象的描述, 有缩进与换行
eol(); // 根据运行环境返回合适的换行符
compact(); // 紧凑格式字符串, 去除 (换行, 空白, 结尾多余的逗号)