You are here

function imageinfo_cache_strlen in Imageinfo Cache 6

Get the length of a string in bytes

Parameters

$string: get string length

1 call to imageinfo_cache_strlen()
imageinfo_cache_async_opp in ./imageinfo_cache.module
Output text & set php in async mode.

File

./imageinfo_cache.module, line 716
Cache image info for theme_imagecache & theme_imagefield_image.

Code

function imageinfo_cache_strlen($string) {
  if (function_exists('mb_strlen')) {
    return mb_strlen($string, '8bit');
  }
  else {
    return strlen($string);
  }
}