title: Displaying Explode data using loop
body: <p>I am new in PHP. I have a code in which i use foreach loop to display data in table of explode function.</p>
  
  <p>Here i have a question</p>
  
  <p>The data in my db is </p>
  
  <p><a href="https://i.stack.imgur.com/EFZSS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EFZSS.png" alt="enter image description here"></a> </p>
  
  <p>Here you see After <code>Aatir</code> there is a blank space. When i use loop to print data</p>
  
  <pre><code>&lt;?php
  ini_set('error_reporting', E_ALL);
  $servername = "localhost";
  $username = "root";
  $password = "";
  $dbname = "pacra1";
  
  $conn = new mysqli($servername, $username, $password, $dbname);
  $sql = "SELECT * FROM `pacra_clients` WHERE `id` = 50";
  
  $conn-&gt;multi_query($sql);
  $result = $conn-&gt;use_result();
  
  echo $conn-&gt;error; 
  $row = $result-&gt;fetch_assoc();
  
  $liaison_one = $row['liaison_one'];
  
  $liaison_one_chunks = explode(",", $liaison_one);
  
      echo '&lt;table border="01"&gt;';
      foreach($liaison_one_chunks as $row){
          echo '&lt;tr&gt;';
          $row = explode(',',$row);
      foreach($row as $cell){
              echo '&lt;td&gt;';
              echo $cell;
              echo '&lt;/td&gt;';
          }
          echo '&lt;/tr&gt;';
      }
      echo '&lt;/table&gt;';
  ?&gt;
  </code></pre>
  
  <p>The result of my code is</p>
  
  <p><a href="https://i.stack.imgur.com/2rIw5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2rIw5.png" alt="enter image description here"></a></p>
  
  <p>In result you can see that there is a blank cell due to blank space in data. </p>
  
  <p><strong>Is it possible that i can skip blank space which is in my data???</strong></p>