NXS_parseEQStr

The NextScripts: Social Networks Auto-Poster NXS parseEQStr function.

Description

NXS_parseEQStr( &$a, (string) $delim = '.', (constant) $default = false ); 

Parameters (3)

0. $a
The a.
1. $delim — Optional. (string) => '.'
The delim.
2. $default — Optional. (constant) => false
The default.

Usage

  1. if ( !function_exists( 'NXS_parseEQStr' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The a. 
  5. $a = &$a; 
  6.  
  7. // The delim. 
  8. $delim = '.'; 
  9.  
  10. // The default. 
  11. $default = false; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = NXS_parseEQStr($a, $delim, $default); 
  15.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists("NXS_parseEQStr")) { function NXS_parseEQStr(&$a, $delim='.', $default=false) { $n = strpos($a, $delim); if ($n === false) return $default; $result = substr($a, $n+strlen($delim)); $a = substr($a, 0, $n); return $result;}}