You are here

function advagg_missing_strlen in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 6 advagg.missing.inc \advagg_missing_strlen()

Get the length of a string in bytes

Parameters

$string: get string length

1 call to advagg_missing_strlen()
advagg_missing_async_opp in includes/missing.inc
Output text & set php in async mode.

File

includes/missing.inc, line 269
Advanced aggregation module; 404 handler.

Code

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