SEOstats/Services/3rdparty/GTB_PageRank.php
// use regex to match values from string, if native json_decode is not available.
use regex to match values from string, if native json_decode is not available.
use regex to match values from string if native json_decode is not available .
public static function _json_decode($a) {
    if (TRUE !== function_exists('json_decode')) {
		$m = array();
		preg_match_all('#"(.*?)"#si', $a, $m);
		return (isset($m[1]) && sizeof($m[1])>0) ? $m[1] : FALSE;
	} else {
		return json_decode($a);
	}
  }
public static function _json_decode ( $ a ) { if ( TRUE !== function_exists ( 'json_decode' ) ) { $ m = array ( ) ; preg_match_all ( '#"(.*?)"#si' , $ a , $ m ) ; return ( isset ( $ m [ 1 ] ) && sizeof ( $ m [ 1 ] ) > 0 ) ? $ m [ 1 ] : FALSE ; } else { return json_decode ( $ a ) ; } }
use regex to match values from string, if native json_decode is not available.
use regex to match values from string if native json_decode is not available .