有没有办法在Codeigniter中使用redirect()函数来发布一个数据数组或单个变量字符串?
sd2nnvve1#
代码点火器4
$array = [ "a" => "aaaa", "b" => "bbbb", ]; return $this->response->redirect(route_to('YourRouteName') . "?" . http_build_query($array));
代码点火器3
$array = [ "a" => "aaaa", "b" => "bbbb", ]; return redirect('your/route?' . http_build_query($array));
1条答案
按热度按时间sd2nnvve1#
假设您有一个数组。
代码点火器4
代码点火器3