private static function get($key = null, $default = null) {

		if(null !== $key && isset(static :: $method['method'], static :: $method['data'])) {

			if(static :: isMethod(static :: $method['method'])) {

				$helper  = new StringToArray();
				$data 	 = $helper -> execute($key, $default, static :: $method['data']);

				//Trim string
				if(true === isset(static :: $options[self :: TRIM_STRING])) {

					if(is_string($data) === 0) {
						$data = trim($data);
					}
				}

				//Convert empty string to NULL
				if(true === isset(static :: $options[self :: EMPTY_STRING_TO_NULL])) {

					if(is_string($data) && strlen($data) === 0) {
						$data = null;
					}
				}

				//Convert empty array to NULL
				if(true === isset(static :: $options[self :: EMPTY_ARRAY_TO_NULL])) {

					if(is_array($data) && count($data) === 0) {
						$data = null;
					}
				}

				$default = null === $data ? $default : $data;
			}

			static :: $method = [];
		}

		return $default;
	}
private static function get($key = null, $default = null) {

		if(null !== $key && isset(static :: $method['method'], static :: $method['data'])) {

			if(static :: isMethod(static :: $method['method'])) {

				$helper  = new StringToArray();
				$data 	 = $helper -> execute($key, $default, static :: $method['data']);

				//Trim string
				if(true === isset(static :: $options[self :: TRIM_STRING])) {

					if(is_string($data) === 0) {
						$data = trim($data);
					}
				}

				//Convert empty string to NULL
				if(true === isset(static :: $options[self :: EMPTY_STRING_TO_NULL])) {

					if(is_string($data) && strlen($data) === 0) {
						$data = null;
					}
				}

				//Convert empty array to NULL
				if(true === isset(static :: $options[self :: EMPTY_ARRAY_TO_NULL])) {

					if(is_array($data) && count($data) === 0) {
						$data = null;
					}
				}

				$default = null === $data ? $default : $data;
			}

			static :: $method = [];
		}

		return $default;
	}
private static function get ( $ key = null , $ default = null ) { if ( null !== $ key && isset ( static :: $ method [ 'method' ] , static :: $ method [ 'data' ] ) ) { if ( static :: isMethod ( static :: $ method [ 'method' ] ) ) { $ helper = new StringToArray ( ) ; $ data = $ helper -> execute ( $ key , $ default , static :: $ method [ 'data' ] ) ; //Trim string
 if ( true === isset ( static :: $ options [ self :: TRIM_STRING ] ) ) { if ( is_string ( $ data ) === 0 ) { $ data = trim ( $ data ) ; } } //Convert empty string to NULL
 if ( true === isset ( static :: $ options [ self :: EMPTY_STRING_TO_NULL ] ) ) { if ( is_string ( $ data ) && strlen ( $ data ) === 0 ) { $ data = null ; } } //Convert empty array to NULL
 if ( true === isset ( static :: $ options [ self :: EMPTY_ARRAY_TO_NULL ] ) ) { if ( is_array ( $ data ) && count ( $ data ) === 0 ) { $ data = null ; } } $ default = null === $ data ? $ default : $ data ; } static :: $ method = [ ] ; } return $ default ; }
Returns variable from source while converting an array from string
@param mixed $key
@param mixed $default
@return mixed
Returns variable from source while converting an array from string