Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file=fopen("./mazes/1.txt","r");
- $lineCount = 0;
- $arrayLine=array();
- $arrayBlock=array();
- while(!feof($file)) {
- $arrayBlock=explode(",", fgets($file));
- $arrayLine[$lineCount] = $arrayBlock;
- $lineCount++;
- }
- echo $arrayLine . '<br>';
Add Comment
Please, Sign In to add comment