Метод |
Описание |
|
alpha ( $value ) : mixed |
Return only alpha chars |
|
alphaDigets ( $value ) : mixed |
Return only alpha and digits chars |
|
bool ( string $string ) : boolean |
Converts many english words that equate to true or false to boolean. |
|
digits ( $value ) : mixed |
Return only digits chars |
|
email ( $email ) : mixed |
Validate emil |
|
float ( string $value, integer $round = 10 ) : float |
|
|
get ( array &$var, mixed $default = null ) : mixed |
Access an array index, retrieving the value stored there if it exists or a default if it does not. |
|
int ( string $value ) : integer |
Smart convert any string to int |
|
isEven ( integer $number ) : boolean |
Is the current value even? |
|
isIn ( integer | float $number, integer | float $min, integer | float $max ) : boolean |
Return true if the number is within the min and max. |
|
isNegative ( integer $number ) : boolean |
Is the current value negative; less than zero. |
|
isOdd ( integer $number ) : boolean |
Is the current value odd? |
|
isPositive ( integer $number, boolean $zero = true ) : boolean |
Is the current value positive; greater than or equal to zero. |
|
limit ( integer $number, integer $min, integer $max ) : integer |
Limits the number between two bounds. |
|
max ( integer $number, integer $max ) : integer |
Decrease the number to the maximum if above threshold. |
|
min ( integer $number, integer $min ) : integer |
Increase the number to the minimum if below threshold. |
|
out ( integer $number, integer $min, integer $max ) : boolean |
Return true if the number is outside the min and max. |
|
relativePercent ( float $normal, float $current ) : string |
Get relative percent |
|