nxs_substr

The NextScripts: Social Networks Auto-Poster nxs substr function.

Description

nxs_substr( $str, $start ); 

Parameters (2)

0. $str
The str.
1. $start
The start.

Usage

  1. if ( !function_exists( 'nxs_substr' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The str. 
  5. $str = null; 
  6.  
  7. // The start. 
  8. $start = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = nxs_substr($str, $start); 
  12.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nxs_substr')) { function nxs_substr($str, $start) { preg_match_all("/./su", $str, $ar); 
  2. if(func_num_args() >= 3) { $end = func_get_arg(2); return join("", array_slice($ar[0], $start, $end)); } else return join("", array_slice($ar[0], $start)); 
  3. }}