private function UriTemplate::isAssoc in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/UriTemplate.php \GuzzleHttp\UriTemplate::isAssoc()
Determines if an array is associative.
This makes the assumption that input arrays are sequences or hashes. This assumption is a tradeoff for accuracy in favor of speed, but it should work in almost every case where input is supplied for a URI template.
Parameters
array $array Array to check:
Return value
bool
1 call to UriTemplate::isAssoc()
- UriTemplate::expandMatch in vendor/
guzzlehttp/ guzzle/ src/ UriTemplate.php - Process an expansion
File
- vendor/
guzzlehttp/ guzzle/ src/ UriTemplate.php, line 224
Class
- UriTemplate
- Expands URI templates. Userland implementation of PECL uri_template.
Namespace
GuzzleHttpCode
private function isAssoc(array $array) {
return $array && array_keys($array)[0] !== 0;
}