This allows for proper PATH_INFO path parsing.
Special care is taken to handle "+" and " ".
public static pathEncode ( string $path ) : string | ||
$path | string | Path to be urlencode()d. |
return | string | URL-encoded string with '/' preserved. |