ScalarVal()
Validates whether the input is a scalar value or not.
v::scalarVal()->isValid([]); // false
v::scalarVal()->isValid(135.0); // true| Mode | Template |
|---|---|
default |
{{subject}} must be a scalar value |
inverted |
{{subject}} must not be a scalar value |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Types
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: