title: How can i put HTML5 required field using form_input() function in Codeigniter framework
body: <p>I am new in codeigniter.But now i am developing a  project using codeigniter.
  My Html code like this: </p>
  
  <pre><code>&lt;input type="text" class="get_started_frm_reg" name="first_name" required /&gt;
  </code></pre>
  
  <p>Now i want to convert it through function form_input() function.I wrote my code like that </p>
  
  <pre><code>$first_name=array(
       "name"=&gt;"first_name",
       "class"=&gt;"get_started_frm_reg",
       "type"=&gt;"text"
  );
  </code></pre>
  
  <p>But i don't understand how can i put required field.Please help me.</p>