Answer the question
In order to leave comments, you need to log in
How to change the structure of an array in Codeigniter?
I change the structure of the array in the index file something like this
for ($i = 0, $c = count($arr); $i < $c; $i++)
{
$new_arr[$arr[$i]['pid']][] = $arr[$i];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question