private function Uri::splitQueryValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-diactoros/src/Uri.php \Zend\Diactoros\Uri::splitQueryValue()
Split a query value into a key/value tuple.
Parameters
string $value:
Return value
array A value with exactly two elements, key and value
1 call to Uri::splitQueryValue()
- Uri::filterQuery in vendor/
zendframework/ zend-diactoros/ src/ Uri.php - Filter a query string to ensure it is propertly encoded.
File
- vendor/
zendframework/ zend-diactoros/ src/ Uri.php, line 610
Class
- Uri
- Implementation of Psr\Http\UriInterface.
Namespace
Zend\DiactorosCode
private function splitQueryValue($value) {
$data = explode('=', $value, 2);
if (1 === count($data)) {
$data[] = null;
}
return $data;
}