title: Divide the .txt file into array variable
body: <p>I have a string in text file as</p>
  
  <pre><code>haha ;  J1.A1 DUT.A1  DUT.A2 C1.1 C2.1 ,
             F2.1 F4.1 K1.1 , 
             F2.1 F4.1 K1.1 ,
             F2.1 F4.1 K1.1  
  aaa;  J1.A1 DUT.A1  DUT.A2 C2.1 C3.1 ,
             F3.1 F5.1 K2.1 , 
             F3.1 F5.1 K2.1 ,
             F3.1 F5.1 K2.1  
  </code></pre>
  
  <p>I want store in array like </p>
  
  <pre><code>$arr =array("haha J1.A1 DUT.A1 DUT.A2 C1.1 C2.1, F2.1 F4.1 K1.1, F2.1 F4.1 K1.1,F2.1 F4.1 K1.1", "aaa J1.A1 DUT.A1 DUT.A2 C2.1 C3.1, F3.1 F5.1 K2.1, F3.1 F5.1 K2.1, F3.1 F5.1 K2.1");
  </code></pre>
  
  <p>if comma not in the line it goes to next array field</p>
  
  <p>Thanks in advance.</p>