Change the $moves = line to this
That will make $moves an arrayPHP Code:$movesData = trim(preg_replace('#(\[(.+?)\])#si', '', $data));
$moves = preg_split('#[0-9]\. #', $movesData, -1, PREG_SPLIT_NO_EMPTY);
![]()
|
Results 1 to 6 of 6
Thread: reading data from file[resolved]Threaded View
|
Click Here to Expand Forum to Full Width |