You are here

private function UriTemplate::isAssoc in Auth0 Single Sign On 8.2

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 220

Class

UriTemplate
Expands URI templates. Userland implementation of PECL uri_template.

Namespace

GuzzleHttp

Code

private function isAssoc(array $array) {
  return $array && array_keys($array)[0] !== 0;
}