Вопрос

How to perform a validation of a multidimensional array?

Array (print_r):

Array ( 
    [btitel] => Array ( [1] => [2] => ) 
    [btext]  => Array ( [1] => [2] => ) 
)

The deepest values may not be empty and must have more then 3 characters.

Is it possible to perform this in just one instance?

Это было полезно?

Решение

You can create your own custom validation rule...

OR

create validation for each item in array...

$btitel_validation = Validation::factory($array['btitel'])...
$btext = Validation::factory($array['btext'])...
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top