1 drupal.inc | drupal_truncate_bytes($string, $len) |
Truncates a UTF-8-encoded string safely to a number of bytes.
Deprecated
since 1.0.0
See also
Related topics
File
- core/
includes/ drupal.inc, line 2432 - Contains constants and function wrappers for Drupal 7.x compatibility.
Code
function drupal_truncate_bytes($string, $len) {
watchdog_deprecated_function('drupal', __FUNCTION__);
return backdrop_truncate_bytes($string, $len);
}