function advagg_missing_strlen in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 includes/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 ./
advagg.missing.inc - Output text & set php in async mode.
File
- ./
advagg.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);
}
}