[Solved] Foreach loop Not Working - 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: [Solved] Foreach loop Not Working (/showthread.php?tid=65374) |
[Solved] Foreach loop Not Working - wolfgang1983 - 06-04-2016 I have my two arrays but cannot get them to work in my foreach loop I get error A PHP Error was encountered Severity: Warning Message: Illegal string offset 'href' Filename: common/Header.php Line Number: 28 How to make i work properly PHP Code: <?php View Code: <!DOCTYPE html> RE: Foreach loop Not Working - pdthinh - 06-04-2016 You can try this: PHP Code: <?php RE: Foreach loop Not Working - wolfgang1983 - 06-04-2016 (06-04-2016, 04:26 AM)pdthinh Wrote: You can try this: Worked |