How to fix function to return multi array ci 3 - 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: How to fix function to return multi array ci 3 (/showthread.php?tid=67146) |
How to fix function to return multi array ci 3 - Khanh Minh - 01-21-2017 i test with function below PHP Code: public function getexam_result($bode) PHP Code: Array when i print array $ans it show array PHP Code: Array how to fix to return multi array thank you in advance RE: How to fix function to return multi array ci 3 - pdthinh - 01-21-2017 You should init $ans array before the first (outer) foreach PHP Code: public function getexam_result($bode) RE: How to fix function to return multi array ci 3 - Khanh Minh - 01-22-2017 tks pro #pdthinh |