문제

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