Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $open_file=fopen("data.txt", "r");
- $key=0;
- $data=array();
- while(!feof($open_file))
- {
- $key++;
- $read_file=fgets($open_file);
- $split_file=explode("#", $read_file);
- $data[$key] = array($split_file[1], $split_file[2], $split_file[3]);
- }
- /*******************************************/
- for($x=1;$x<=3;$x++){
- for($i=0;$i<3;$i++){
- echo $data[$x][$i]; echo " ";
- }
- echo "<br>";
- }
- unset($data["1"]);
- echo $data["2"][0];
- /*********************************************/
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement