Korin API

Spellings
in package

FinalYes

The 5.5.5 spelling of 5.5.1 values its stricter grammars reject (for Rule\Values): ages with a space after < and > and without leading zeroes or zero parts ("<01y 0m" → "< 1y"), months past 11 in years ("42m" → "3y 6m"; days stay, a month has no fixed length), dates with days without a leading zero and years of at least 3 digits ("05 JAN 50" → "5 JAN 050"), times with hours without one and two-digit fractions ("09:05:00.5" → "9:05:00.50"), place names with ", " between parts. Null when there is none: an age of 0y, a longer fraction.

Table of Contents

Methods

respell()  : string|null

Methods

respell()

public static respell(string $grammar, string $value) : string|null
Parameters
$grammar : string
$value : string
Return values
string|null
On this page

Search results