mb_substr

Compat function to mimic mb_substr().

Description

mb_substr( $s, $start, (int) $length = 2147483647, (constant) $enc = null ); 

Parameters (4)

0. $s
The s.
1. $start
The start.
2. $length — Optional. (int) => 2147483647
The length.
3. $enc — Optional. (constant) => null
The enc.

Usage

  1. if ( !function_exists( 'mb_substr' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/vendor/symfony/polyfill-mbstring/bootstrap.php'; 
  3.  
  4. // The s. 
  5. $s = null; 
  6.  
  7. // The start. 
  8. $start = null; 
  9.  
  10. // The length. 
  11. $length = 2147483647; 
  12.  
  13. // The enc. 
  14. $enc = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = mb_substr($s, $start, $length, $enc); 
  18.  

Defined (1)

The function is defined in the following location(s).

/vendor/symfony/polyfill-mbstring/bootstrap.php