php - Convert file to array and explode with comma -


i convert rpt file array. file divided commas. of course that's easy part. second thing need convert multidimensional array, easy got stuck in it. need make each line of file next row.
i'm looking in head don't know how solve it.
hope you'll me!

enter image description here

enter image description here

$contents = file($path); foreach($contents &$row){   $row = explode(",",$row); } 

file() reads file array, 1 line 1 array element.


Comments

Popular posts from this blog

java - Static nested class instance -

Python Pandas join aggregated tables -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -