public function toUrl($url, $parameters)
	{
		foreach ($parameters as $key => $value)
		{
			if (\is_array($value))
			{
				foreach ($value as $k => $v)
				{
					if (strpos($url, '?') === false)
					{
						$url .= '?' . $key . '=' . $v;
					}
					else
					{
						$url .= '&' . $key . '=' . $v;
					}
				}
			}
			else
			{
				if (strpos($value, ' ') !== false)
				{
					$value = $this->safeEncode($value);
				}

				if (strpos($url, '?') === false)
				{
					$url .= '?' . $key . '=' . $value;
				}
				else
				{
					$url .= '&' . $key . '=' . $value;
				}
			}
		}

		return $url;
	}
public function toUrl($url, $parameters)
	{
		foreach ($parameters as $key => $value)
		{
			if (\is_array($value))
			{
				foreach ($value as $k => $v)
				{
					if (strpos($url, '?') === false)
					{
						$url .= '?' . $key . '=' . $v;
					}
					else
					{
						$url .= '&' . $key . '=' . $v;
					}
				}
			}
			else
			{
				if (strpos($value, ' ') !== false)
				{
					$value = $this->safeEncode($value);
				}

				if (strpos($url, '?') === false)
				{
					$url .= '?' . $key . '=' . $value;
				}
				else
				{
					$url .= '&' . $key . '=' . $value;
				}
			}
		}

		return $url;
	}
public function toUrl ( $ url , $ parameters ) { foreach ( $ parameters as $ key => $ value ) { if ( \ is_array ( $ value ) ) { foreach ( $ value as $ k => $ v ) { if ( strpos ( $ url , '?' ) === false ) { $ url .= '?' . $ key . '=' . $ v ; } else { $ url .= '&' . $ key . '=' . $ v ; } } } else { if ( strpos ( $ value , ' ' ) !== false ) { $ value = $ this -> safeEncode ( $ value ) ; } if ( strpos ( $ url , '?' ) === false ) { $ url .= '?' . $ key . '=' . $ value ; } else { $ url .= '&' . $ key . '=' . $ value ; } } } return $ url ; }
Method to create the URL formed string with the parameters.

@param   string  $url         The request URL.
@param   array   $parameters  Array containing request parameters.

@return  string  The formed URL.

@since   1.0
Method to create the URL formed string with the parameters .