title: Yii2 validation rule for multiple inputs with same name
body: <p>I have one form which has multiple inputs with same name which are dynamically added using jQuery. Input names are as below:</p>
  
  <pre><code>ModelName[dynamic_name][]
  ModelName[dynamic_name][]
  </code></pre>
  
  <p>I have also declared <code>dynamic_name</code> as public variable in a <code>Model</code>. How can I validate the above inputs using yii2 validation rule?</p>