PHP Class Symfony\Component\Translation\Interval
An interval can represent a finite set of numbers:
{1,2,3,4}
An interval can represent numbers between two numbers:
[1, +Inf]
]-1,2[
The left delimiter can be [ (inclusive) or ] (exclusive).
The right delimiter can be [ (exclusive) or ] (inclusive).
Beside numbers, you can use -Inf and +Inf for the infinite.
Afficher le fichier
Open project: pmjones/php-framework-benchmarks
Class Usage Examples
Méthodes publiques
Private Methods
Method Details
getIntervalRegexp()
public static méthode
Returns a Regexp that matches valid intervals.
test()
public static méthode
Tests if the given number is in the math interval.