PHP 严格类型
只需在 PHP 代码文件的开头加上declare(strict_types = 1);这一行魔法代码,就能开启严格类型检查之旅。
$max = Db::table('member')->max('id') ?? 0; if ($max < 100000) { $cd = $this->create...
/** * 微信 退款 操作 */ public function refund($out_trade_no, $refund_money) { $time = time();...
$distance = "ACOS(SIN(( $lat * 3.1415) / 180 ) *SIN((lat * 3.1415) / 180 ) +COS((...
public function dyqrcode($uid){ $url = "https://open.douyin.com/api/apps/v1/qrcode...
/** * 内容验证 */public function check($content){ $count = 0; //违规词的个数 $list =...
public static function pay($order_sn = '11111', $money = '12', $uid = 7) ...