title: declare an empty array of size 100 in codeigniter php
body: <p>I am developing an application in php using codeigniter for a workflow process.</p>
  
  <p>Now i need to declare an empty array of size 100 or 200 with null value default..whenever workflow executed anyways values get stored in to that array dynamically..</p>
  
  <p>I am having a array in my view like</p>
  
  <pre><code>  if(isset($value)){
  
   foreach ($value as $row) {
  
   $wer[] = $row;
  
   }
   }
  </code></pre>
  
  <p>Now whenever workflow runs automatically values get stored in view using <code>form_dropdown('perfpmself_1',$rate,$wer[0],'class="self"');</code>
  from the above format i use to load all values from $wer[0] to $wer[50]. All values will displayed properly...but if there is no values in database to load it to an array..it is throwing an error like </p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  
  Message: Undefined variable: wer
  
  Filename: views/performancepm.php
  </code></pre>
  
  <p>Can anyone suggests a solution for this to overcome this error on my view screen??</p>
  
  <p>Please help..thanks in advance</p>