DEV Community

Discussion on: A simple parameter validator

Collapse
moopet profile image
Ben Sinclair
[
    'name'  => 'required|min_len:5,max_len:10', // required 5<= strlen(name) <=10
    'email' => 'required|email', // required email
    'age'   => 'uint|min:18|max:200' 
]
Enter fullscreen mode Exit fullscreen mode

What's the difference between using a comma as a separator and a pipe here?

Collapse
lizhichao profile image
vic Author

Thanks for the feedback, it should be all pipe symbols, the article is wrong