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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -