Oihana PHP System

between.php

Table of Contents

Functions

between()  : string
Generates the 'between:min,max' rule expression.

Functions

between()

Generates the 'between:min,max' rule expression.

between(string|int|float $min, string|int|float $max) : string

The field under this rule must have a size between min and max params. Value size is calculated in the same way as min and max rule.

You can also validate the maximum size of uploaded files using this rule:

$validation = $validator->validate
([
   'photo' => $_FILES['photo']
],
[
    'photo' => 'required|between:1M,2M'
]);
Parameters
$min : string|int|float
$max : string|int|float
Return values
string

        
On this page

Search results