There is data that lies in the file file.conf . I read it into a two-dimensional array, then using the explode method explode get what I need it. But I need to return it in the corrected form, which I can’t do. The code itself:
$array = file('Config.conf'); function explodearray() { for ($i = 0; $i <= count($k); $i++) { for ($s = 0; $s <= count($k); $s++) { $k[$i][$s] = explode('%',$k[$i][$s]); echo $k[2][2]; } } return $k; echo "done"; } explodearray($array);` file.conf :
Plate_1%59 DI_1%true%Switch 1%false%DO_1%2 DI_2%true%switch 2%true%DO_2%2` On exit, I have to get a modified array. Be kind, tell me something.