正在获取响应%40以代替@我应该如何转换它


Getting response %40 in place of @ how should i convert it

此函数在查询中搜索%40而不是@:

public function check_email() {
  $main = ($_POST['main']);
  $this->load->database();
  $this->db->where('email', $main);
  $query = $this->db->get('abc');
}  

我需要更改什么才能不将@替换为%40

您可以使用urldecode();

echo urldecode("%40"); // @