title: Fetch row and explode - PHP mySQL
body: <p>Here is my code:</p>
  
  <pre><code>$postsql = "SELECT * FROM post WHERE id='{$_GET['id']}'";
  $posts = mysqli_query($connect,$postsql) or die("Error: ".mysqli_error($connect));
  $post = mysqli_fetch_array($posts);
  
  $postAuthor = $post['author'];
  $postDate = $post['date'];
  
  $postCat = mysqli_fetch_row($post['cat']);// I've tags here separated by commas.
  $postCatTag = explode(",",$postCat);
  
  $postText = $post['text'];
  
  echo "&lt;img class='view_newsimg' src='{$postImg}'&gt;
  &lt;h3 class='lath'&gt;{$postTitle}&lt;/h3&gt;
  &lt;ul class='det'&gt;&lt;li class='adc'&gt;avtori: {$postAuthor}&lt;/li&gt;
  &lt;li class='adc'&gt;TariRi: {$postDate}&lt;/li&gt;
  &lt;li class='adc'&gt;kategoria: &lt;a href='#'&gt;{$postCatTag}&lt;/a&gt;&lt;/li&gt;"; // tags are shown here
  echo &lt;&lt;&lt;TEXT
  &lt;p class="news"&gt;{$postText}&lt;/p&gt;
  TEXT;
  </code></pre>
  
  <p>As a result for tag section in browser it displays:
   kategoria: <strong>Array</strong></li>
  instead of displaying tags from table.
  Why? How can get desired result?</p>