php url转word
composer require phpoffice/phpword <?php
require_once 'vendor/autoload.php';
use PhpOffice\PhpWord\IOFactory;
use PhpOffice\PhpWord\Shared\Html;
use
编程栈
未读
php 支付宝h5支付
php-支付宝h5支付 <?php
namespace app\api\service;
use think\facade\{View,Session,Cache,Db};
use think\exception\HttpResponseException;
require_once '../ext
编程栈
未读
微信公众号授权,常做登录用
微信公众号授权,常做登录用 // 微信公众号授权
public function WxAhref(){
$appid="wx9999999999999";
$redirect_uri="https://z.fuls.top/login/WxgetUser";
编程栈
未读
thinkphp6 where条件的一些查询方法
thinkphp6 where条件的一些查询方法 where
1. 表达式查询,就是 where()方法的基础查询方式;
Db::name('user')->where('id', '>', 70)->select();
2. 可以通过关联数组和索引数组作为参数来进行查询;
$data = [
编程栈
未读
自定义邀请码_加密解密_不存数据库
自定义邀请码_加密解密_不存数据库 //生成邀请码- $type=0 时 code=id 返回邀请码。 $type=1时, 返回用户id
protected function setInviteCode($idrCode,$type=0){
$sz=["A","B","C","D","E
编程栈
未读
php curl 请求封装
php curl请求封装
function curlPost($url, $data = [],$header=[])
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,