NXS_parseQueryStr

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

Description

NXS_parseQueryStr( $url ); 

Parameters (1)

0. $url
The url.

Usage

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

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists("NXS_parseQueryStr")) { function NXS_parseQueryStr($url) { $tokens = explode("&", $url); $urlVars = array(); 
  2. foreach ($tokens as $token) { $token = urldecode($token); $value = NXS_parseEQStr($token, "=", "");  
  3. if (preg_match('/^([^\[]*)(\[.*\])$/', $token, $matches)) { if (preg_match_all('/\[([^\]]*)\]/', $matches[2], $matches2)) $gg = $matches2[1]; array_unshift($gg, $matches[1]); NXS_doSetArrRecursive($urlVars, $gg, $value);}  
  4. else $urlVars[$token] = $value; 
  5. } return $urlVars; 
  6. }}