Neuron-PHP

IsCurrency extends Base
in package

Requires a number with a maximum of 2 decimal places.

Table of Contents

Methods

__construct()  : mixed
isValid()  : bool
Returns true if validation is successful
validate()  : bool
Validates if the value is in a currency format.

Methods

isValid()

Returns true if validation is successful

public isValid(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validate()

Validates if the value is in a currency format.

public validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results