update-alternatives –config php
在PHP目录中的文章:
PHP 是一种免费开源、跨平台、广泛流行的脚本语言,通常运行于服务器端,用来开发网站后台程序。
PHP 语法简洁,规则宽松,架构简单,基本不需要配置文件,并且内置了很多实用性强的函数,这使得 PHP 学习成本极低,使用起来非常灵活,所以曾被誉为“世界上最好的编程语言”。
比较有特点的订单号
<?php
$yCode=array_merge(range('A', 'Z'),range('a', 'z'),range(0, 9));
$orderSn = $yCode[intval(date('Y')) - 2023];
$orderSn .= $yCode[intval(date('m'))];
$orderSn .= $yCode[intval(date('d'))];
$orderSn .= $yCode[intval(date('H'))];
$orderSn .= $yCode[intval(date('i'))];
$orderSn .= $yCode[intval(date('s'))];
$orderSn .= substr(microtime(), 2, 5)
$orderSn .= sprintf('%02d', mt_rand(0, 99));
echo $orderSn;