MCPcopy Create free account
hub / github.com/CoderOpen/waimai / paramQuery

Function paramQuery

bootstrap/function.php:234–247  ·  view source on GitHub ↗
($query, $index = '')

Source from the content-addressed store, hash-verified

232 return $list;
233}
234function paramQuery($query, $index = '')
235{
236 $queryParts = explode('&', $query);
237 $params = array();
238
239 foreach ($queryParts as $param) {
240
241 $item = explode('=', $param);
242
243 $params[$item[0]] = $item[1];
244
245 }
246 return $params[$index] ?? $params;
247}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected