jmsfwk / surlf

一个用于按printf字符串样式格式化URL的库。

v1.0.2 2019-04-12 10:08 UTC

This package is auto-updated.

Last update: 2024-09-29 05:02:15 UTC


README

Build Status

使用说明

use Jmsfwk\Surlf\Formatter;

echo Formatter::format('%h/%p', 'http://example.com/a-path');
// example.com/a-path

格式

下表中的示例基于URL http://example.com/a/b/c?d=e&f=g