You are here

function httprl_is_array_assoc in HTTP Parallel Request & Threading Library 6

Same name and namespace in other branches
  1. 7 httprl.module \httprl_is_array_assoc()

Given an array return TRUE if all keys are numeric.

Parameters

$array: The data to process.

Return value

TRUE or FALSE.

See also

http://stackoverflow.com/questions/173400/php-arrays-a-good-way-to-check...

1 call to httprl_is_array_assoc()
httprl_batch_callback in ./httprl.module
Given an array of data, use multiple processes to crunch it.

File

./httprl.module, line 3495
HTTP Parallel Request Library module.

Code

function httprl_is_array_assoc($array) {
  return ctype_digit(implode('', array_keys($array)));
}