public function smsPricing ($country_code) {
			$country_code = strtoupper($country_code);

			if (!isset($this->cache['country_codes']))
				$this->cache['country_codes'] = array();

			if (!isset($this->cache['country_codes'][$country_code])) {
				$tmp = $this->apiCall('get_pricing', array('country_code'=>$country_code));
				if (!$tmp['data']) return false;

				$this->cache['country_codes'][$country_code] = $tmp['data'];
			}

			return (float)$this->cache['country_codes'][$country_code]['mt'];
		}
public function smsPricing ($country_code) {
			$country_code = strtoupper($country_code);

			if (!isset($this->cache['country_codes']))
				$this->cache['country_codes'] = array();

			if (!isset($this->cache['country_codes'][$country_code])) {
				$tmp = $this->apiCall('get_pricing', array('country_code'=>$country_code));
				if (!$tmp['data']) return false;

				$this->cache['country_codes'][$country_code] = $tmp['data'];
			}

			return (float)$this->cache['country_codes'][$country_code]['mt'];
		}
public function smsPricing ( $ country_code ) { $ country_code = strtoupper ( $ country_code ) ; if ( ! isset ( $ this -> cache [ 'country_codes' ] ) ) $ this -> cache [ 'country_codes' ] = array ( ) ; if ( ! isset ( $ this -> cache [ 'country_codes' ] [ $ country_code ] ) ) { $ tmp = $ this -> apiCall ( 'get_pricing' , array ( 'country_code' => $ country_code ) ) ; if ( ! $ tmp [ 'data' ] ) return false ; $ this -> cache [ 'country_codes' ] [ $ country_code ] = $ tmp [ 'data' ] ; } return ( float ) $ this -> cache [ 'country_codes' ] [ $ country_code ] [ 'mt' ] ; }
Find out the price to send a message to a country
@param $country_code Country code to return the SMS price for
@return float|bool
Find out the price to send a message to a country