//把key也implode进来

function Pimplode( $spliter="&" , $arr , $encode=true , $filterArr = array()  )
{
    
foreach$arr as $gkey=>$gv)
    {
        
if (!in_array$gkey , $filterArr ))
        {
            
if ($encode)
            {
                
$getstring .= urlencode($gkey)."=".urlencode($gv).$spliter;
            }
            
else
            {
                 
$getstring .= $gkey."=".$gv."&";
            }
        }
    }
    
$getstring = substr($getstring , 0 , -1);
    
return $getstring;
}

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-11-20
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案