PHP code example of songxuan / php-fun
1. Go to this page and download the library: Download songxuan/php-fun 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/ */
songxuan / php-fun example snippets
uan\PhpFun;
//生成32位以内随机字符串
//$len 字符串长度,默认10位
echo PhpFun::uuid32($len);
//手机号正则
//$phone 手机
var_dump(PhpFun::isPhone($phone));