import moons

This commit is contained in:
2021-05-30 17:53:17 +09:00
parent b1e4edad3b
commit debe3f8025

View File

@@ -65,11 +65,11 @@ class ImportAllianceMoons extends Command
//Create the file handler
$data = Storage::get('public/alliance_moons.txt');
//Split the string into separate arrays based on the line
$data = preg_split("/\n/", $data);
$tempLines = preg_split("/\n/", $data);
foreach($i = 0; $i < sizeof($data); $i++) {
$lineData = preg_split("/\t/", $data[$i]);
var_dump($lineData);
foreach($tempLines as $temp) {
$stuff = preg_split("/\t/", $temp);
var_dump($stuff);
}
dd();