title: Unable to retrieve image names correctly
body: <p>Im trying to retrieve an array of images. All images are appearing fine. However,images with name "image_01" and "image_02" are being retrieved as image_1 and image_2. It is because of the "str_replace" Im using. Can someone tell me why this is happening?</p>
  
  <pre><code>$image=$policy-&gt;gallery;     
  $image = trim($image,'*');
  $temp = explode('*',$image );
  echo $temp[5];
  // $temp = array_filter($temp);
  foreach($temp as $image)
  {
    $images[]=base_url()."images/park_photos/".trim( str_replace( array('['*']') ,"" ,$image ) );
    //echo trim( str_replace( array('['*']') ,"" ,$image ));
  }
  foreach($images as $image)
  {
    echo "&lt;img src='{$image}' style='width:100px; height:100px; display:block; float:left;' /&gt;";
  }
  ?&gt;
  </code></pre>