Php 获取查询字符串的值

Php 获取查询字符串的值,php,codeigniter-url,Php,Codeigniter Url,如何使用codeigniter获取上述url中多个查询字符串的值 URI类是自动加载的,您可以使用segment方法来检索数据 $this->uri->segment(4) 得到7分 更多信息:请尝试: $this->load->library('uri'); echo $this->uri->segment(4); URI类提供了一些函数,可以帮助您从URI字符串中检索信息 实际上,URI不是帮助器,而是一个核心类,有一个URL帮助器,但这不是必需的。

如何使用codeigniter获取上述url中多个查询字符串的值


URI类是自动加载的,您可以使用segment方法来检索数据

$this->uri->segment(4)
得到7分

更多信息:

请尝试:

$this->load->library('uri');
echo $this->uri->segment(4);
URI类提供了一些函数,可以帮助您从URI字符串中检索信息


实际上,URI不是帮助器,而是一个核心类,有一个URL帮助器,但这不是必需的。