nxs_spinReplace

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

Description

nxs_spinReplace( $txt ); 

Parameters (1)

0. $txt
The txt.

Usage

  1. if ( !function_exists( 'nxs_spinReplace' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc/nxs_functions_adv.php'; 
  3.  
  4. // The txt. 
  5. $txt = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_spinReplace($txt); 
  9.  

Defined (1)

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

/inc/nxs_functions_adv.php  
  1. if (!function_exists("nxs_spinReplace")) { function nxs_spinReplace($txt) { global $nxs_spin_splCh; $txt = explode($nxs_spin_splCh, $txt); $out = $txt[mt_rand(0, count($txt)-1)]; return $out; }}