Solar_Filter_ValidateSizeScope::validateSizeScope()

public bool Solar_Filter_ValidateSizeScope::validateSizeScope ( mixed $value , int $size , int $scope )

See the value has only a certain number of digits and decimals.

Parameters

  • (mixed) $value: The value to validate.

  • (int) $size: The total number of digits allowed in the value, excluding the negative sign and decimal point.

  • (int) $scope: The maximum number of decimal places.

Returns

  • (bool) True if valid, false if not.

Description

See the value has only a certain number of digits and decimals.

The value must be numeric, can be no longer than the $size, and can have no more decimal places than the $scope.



Local