![]() |
For loop with var dump question. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: For loop with var dump question. (/showthread.php?tid=64498) |
For loop with var dump question. - wolfgang1983 - 02-26-2016 When I var dump my $orignal_images. Because it is in the for loop it displays the var dump array multiple times as shown below. PHP Code: array (size=6) Question how to only make it display one array result in the var dump. PHP Code: $get_directory = $this->input->get('directory'); RE: For loop with var dump question. - InsiteFX - 02-26-2016 (02-26-2016, 01:00 AM)wolfgang1983 Wrote: When I var dump my $orignal_images. Because it is in the for loop it displays the var dump array multiple times as shown below. You can try this: PHP Code: $original_images = str_replace('_thumb-' . $width . 'x' . $height, '', $cached_images[$i]); |