PHP Interface Overtrue\Pinyin\DictLoaderInterface

Show file Open project: overtrue/pinyin Interface Usage Examples

Public Methods

Method Description
map ( Closure $callback ) Load dict.
mapSurname ( Closure $callback ) Load surname dict.

Method Details

map() public method

[
    '响应时间' => "[\t]xiǎng[\t]yìng[\t]shí[\t]jiān",
    '长篇连载' => '[\t]cháng[\t]piān[\t]lián[\t]zǎi',
...
]
public map ( Closure $callback )
$callback Closure

mapSurname() public method

Load surname dict.
public mapSurname ( Closure $callback )
$callback Closure