1 drupal.inc drupal_substr($text, $start, $length = NULL)

Cuts off a piece of a string based on character indices and counts.

Deprecated

since 1.0.0

See also

backdrop_substr()

Related topics

File

core/includes/drupal.inc, line 2486
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_substr($text, $start, $length = NULL) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_substr($text, $start, $length);
}