• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






ygk1992

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2019年4月28日

preg_replace_callback函数使用
摘要: <?php // 将文本中的年份增加一年. $text = "April fools day is 04/01/2002\n"; $text.= "Last christmas was 12/24/2001\n"; // 回调函数 function next_year($matches) { // 通常: $matches[0]是完成的匹配 // $matches[1]是第一个捕获子组的匹... 阅读全文
posted @ 2019-04-28 17:21 于广坤 阅读(92) 评论(0) 推荐(0)
 
$_SERVER服务器端
摘要: url = 'http://www.5idev.com/php/index.php/test/foo?username=hbolive' php 获取$_SERVER信息 $_SERVER['PHP_SELF'] 得到:/php/index.php/test/foo 得到当前正在执行脚本的文件名 $ 阅读全文
posted @ 2019-04-28 14:24 于广坤 阅读(147) 评论(0) 推荐(0)
 
debug_backtrace
摘要: Array ( [file] = /usercode/file.php [line] = 10 [function] = three [args] = Array ( ) ) [1] = Array ( [file] = /usercode/file.php [line] = 6 [function 阅读全文
posted @ 2019-04-28 14:04 于广坤 阅读(140) 评论(0) 推荐(0)
 
token登录流程
摘要: 1、token生成规则: private static $nameKey = array( 'readerid' = 0, //客户号 'ubuntu' = 1, //登录令牌 'ptid' = 2, //盛大通行证ID 'email' = 3,//邮箱 'authorid' = 4,//作者ID 阅读全文
posted @ 2019-04-28 11:36 于广坤 阅读(1604) 评论(0) 推荐(0)