private function UriTemplate::isAssoc

Determines if an array is associative

Parameters

array $array Array to check:

Return value

bool

1 call to UriTemplate::isAssoc()
UriTemplate::expandMatch in drupal/core/vendor/guzzle/parser/Guzzle/Parser/UriTemplate/UriTemplate.php
Process an expansion

File

drupal/core/vendor/guzzle/parser/Guzzle/Parser/UriTemplate/UriTemplate.php, line 242

Class

UriTemplate
Expands URI templates using an array of variables

Namespace

Guzzle\Parser\UriTemplate

Code

private function isAssoc(array $array) {
  return (bool) count(array_filter(array_keys($array), 'is_string'));
}