PHP code example of ihome / helpers

1. Go to this page and download the library: Download ihome/helpers 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/ */

    

ihome / helpers example snippets


     
        // 获取10位随机字符串
        $string = getRandString(10);
        var_dump($string);
        
        // 浮点数判断大小
        $result = bcCompNumber(1.1, '<', 2.2);
        var_dump($result);// true