title: code igniter form_input
body: <p>A couple questions here..</p>
  
  <ol>
  <li>What is the following syntax?</li>
  <li><p>What do all the pieces mean?    </p>
  
  <pre><code>(( ! is_array($data)) ? $data : '')
  </code></pre></li>
  <li><p>How is it used in the function at the end?</p>
  
  <pre><code>function form_input($data = '', $value = '', $extra = '')
  {
      $defaults = array('type' =&gt; 'text', 'name' =&gt; (( ! is_array($data)) ? $data : ''), 'value' =&gt; $value);
      return "&lt;input "._parse_form_attributes($data, $defaults).$extra." /&gt;";
  }
  </code></pre></li>
  </ol>
  
  <p>Thankyou. Blake</p>