File manager - Edit - /home/opticamezl/www/newok/templates/yootheme/packages/http-message/src/Uri.php
Back
<?php namespace YOOtheme\Http; use YOOtheme\Http\Message\Uri as BaseUri; class Uri extends BaseUri { /** * Retrieve query string arguments. * * @return array */ public function getQueryParams() { parse_str($this->getQuery(), $query); return $query; } /** * Retrieve a value from query string arguments. * * @param string $key * @param mixed $default * * @return mixed */ public function getQueryParam($key, $default = null) { $query = $this->getQueryParams(); return $query[$key] ?? $default; } /** * Return an instance with the specified query parameters. * * @param array $parameters * * @return static */ public function withQueryParams(array $parameters) { return $this->withQuery(http_build_query($parameters, '', '&', PHP_QUERY_RFC3986)); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings