CodeIgniter Laravel PHP Example Javascript jQuery MORE Videos New
Need a Website Or Web Application Contact : +91 9437911966 (Whatsapp) Note: Paid Service

Nested foreach in Codeigniter


<?php
        foreach ($category as $c) {
            echo "<li>" . $c->CategoryName . "</li>";
            foreach ($process as $r) {
                if($r['cat_id']==$c['id']){
echo "<li><a href=\"" . base_url() . "index.php/process/id/" . $r->ProcessID . "\" target=\"_blank\">" . $r->ProcessName . "</a></li>";
       }

            }
        }
    ?>