You are here

function httprl_strlen in HTTP Parallel Request & Threading Library 6

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

Get the length of a string in bytes.

Parameters

string $string: get string length

3 calls to httprl_strlen()
httprl_decode_data in ./httprl.module
Will decode chunked transfer-encoding and gzip/deflate content-encoding.
httprl_handle_data in ./httprl.module
If data is being sent out in this request, handle it correctly.
httprl_send_request in ./httprl.module
Perform many HTTP requests.

File

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

Code

function httprl_strlen($string) {
  static $mb_strlen;
  if (!isset($mb_strlen)) {
    $mb_strlen = function_exists('mb_strlen');
  }
  if ($mb_strlen) {
    return mb_strlen($string, '8bit');
  }
  else {
    return strlen($string);
  }
}