We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinoco's validator framework can't deal array form value. But there are even enough amount of them like multiple check-box or such as.
<label><input name="opts[]" type="checkbox" value="opt1"/>GPL</label> <label><input name="opts[]" type="checkbox" value="opt2"/>BSD</label> <label><input name="opts[]" type="checkbox" value="opt3"/>MIT</label> <label><input name="opts[]" type="checkbox" value="opt4"/>Apache</label>
My idea:
<?php $validator->check('opts')->is('array')->all('in opt1,opt3,opt3,opt4');
<?php $validator->check('opts')->is('array')->any('in opt1,opt3,opt3,opt4');
The text was updated successfully, but these errors were encountered:
Changed sample code above.
Sorry, something went wrong.
Added array support by validation framework. #59
7aa4ecf
Keep more flexibility #59
12ea477
No branches or pull requests
Pinoco's validator framework can't deal array form value. But there are even enough amount of them like multiple check-box or such as.
My idea:
The text was updated successfully, but these errors were encountered: