如何使用ThinkPHP3.2.3实现路由参数传递?

更新于
2026-09-24 20:39:23
1阅读来源:SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计94个文字,预计阅读时间需要1分钟。

如何使用ThinkPHP3.2.3实现路由参数传递?

使用ThinkPHP框架进行URL参数传递,以下为三种方式:

如何使用ThinkPHP3.2.3实现路由参数传递?

1. 使用数组形式:`U('Blog/cate', array('cate_id'=> 1, 'status'=> 1))`

2.使用字符串形式:`U('Blog/cate', 'cate_id=1&status=1')`

3.使用URL查询形式:`U('Blog/cate?cate_id=1&status=1')`

thinkphp-param

U('Blog/cate',array('cate_id'=>1,'status'=>1)) U('Blog/cate','cate_id=1&status=1') U('Blog/cate?cate_id=1&status=1')