Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Well, if a separate table is being built for the parameter , then it would be more logical to group the data precisely on this basis, and building on them will no longer be any difficulty. Something like this
$data=[
'name'=>'param1',
'categories'=>[
[
'name'=>'category1',
'value_1'=>'',
'value_2'=>'',
],
],
];
echo "Тут заголовок, с разделителем \t", "\n";
foreach ($array as $arr) {
echo $arr['name'], "\t", $arr['value_1'], "\t", $arr['value_2'], "\n";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question