企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## urr转数组 ``` // url转为数组 function urlTurnArray($surl){ $urlA = explode('?',$surl); if(isset($urlA[1])){ $urlA[1] = explode('&',$urlA[1]); foreach ($urlA[1] as $k=>$v){ $urlA[1][$k] = explode('=',$v); } }else{ $urlA[1] = []; } if(!empty($urlA[1])) $urlA[1] = array_column($urlA[1],1,0); return $urlA; } ```