Guest User

Untitled

a guest
Jan 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $fh = fopen("text1.txt", "r");
  2. while($line = fgets($fh))
  3. {
  4. $main_line = 0;
  5. if(substr($line, 0, 1) != " ")
  6. {
  7. $head[] = $line;
  8. }
  9. else
  10. {
  11. $sub[] = $line;
  12. }
  13. }
  14.  
  15.  
  16. foreach($head as $v)
  17. {
  18. foreach($sub as $v1)
  19. {
  20. $merged[$v][$v1];
  21. }
  22. }
Add Comment
Please, Sign In to add comment