All code: https://pastebin.com/5c317zU8
There is a php code. Which already works, you only need to organize the substitution in order from the beginning to the end of the array indices.
list($a1, $b1, $c1, $d1, $e1, $f1, $g1, $h1, $i1, $j1, $k1, $l1, $m1, $n1, $o1, $p1, $q1, $r1, $s1, $t1, $u1, $v1, $w1, $x1, $y1, $z1) = explode(', ', trim($file1[0], ', ')); Tried to do this using the key () function. Specifying the same trim ($ file1 [$ key], ',')
Which results in the error / Warning: trim () expects parameter 1 to be string, array given in
I understand that this means that I am trying to pass an array instead of a string. But how to do so, that would substitute the array index as a string from the beginning to the end of the array indices in order. Most likely this is done through the foreach function but I do not know how.
The result of the php script itself: https://pastebin.com/yPBXzgCd
It should be like this: https://pastebin.com/htGNCrFq
Updated:
Corrected code: https://pastebin.com/yJhMckLr
What happens: https://pastebin.com/KJ73WNSM
It should be like this: https://pastebin.com/htGNCrFq
So far, so I can not understand how to organize the processing of indices from beginning to end. By type from 0 to the n-th number of the index. That is, from the beginning to the end of the array indices.