You are here

function boost_strlen in Boost 6

Get the length of a string in bytes

Parameters

$string: get string length

1 call to boost_strlen()
boost_async_opp in ./boost.module
Output text & set php in async mode.

File

./boost.module, line 5662
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

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