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!
$contents = file($path); foreach($contents &$row){ $row = explode(",",$row); }
file()
reads file array, 1 line 1 array element.
Comments
Post a Comment