title: display array values in view using codeigniter
body: <p><strong>Controller:</strong></p>
  
  <pre><code>function checkedServices() {
  
          $data = array();
          foreach($this-&gt;input-&gt;post('check_service') as $ser) {
              $data[] = array('service' =&gt; $ser);
          }
  
          $checked_services['services'] = array($data);
  
          $this-&gt;load-&gt;view('checked_services', $checked_services);
      }
  </code></pre>
  
  <p><strong>view:</strong></p>
  
  <pre><code>foreach($services as $ser)
      {   
          echo $ser;
      }
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <p>Severity: Notice</p>
  
  <p>Message: Array to string conversion</p>
  
  <p>Filename: views/checked_services.php</p>