PHP code example of createlinux / helper

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

    

createlinux / helper example snippets


/**
* $scale int 精度
 * 第二个参数为可变参数,数据类型为:array|int|float
 * 数组类型中只能包含int或者float
 */
Createlinux\Helper\Math\Basic::add(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::sub(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::div(int $scale,[2,3,4,5],4,4.8,95);
Createlinux\Helper\Math\Basic::mul(int $scale,[2,3,4,5],4,4.8,95);

//是否包含中文
Regular::hasChinese(string $string);
//是否包含日文
Regular::hasJapanese(string $string);

//print_r函数增加了换行符\n
println(string $anything)