title: Issue when passing MySQL LONGTEXT as JSON in PHP
body: <p>I have MySQL table called articles for my news website. When i tried to get all data from that table using PHP, I can pass all data in JSON but <code>article_text</code>. This is what i did,</p>
  
  <p>(This is just for test)</p>
  
  <pre><code>$result = mysqli_query($dbc, "SELECT * FROM articles");
  if(mysqli_num_rows($result) &gt; 0){
      while ($row = mysqli_fetch_assoc($result)) {
          $arr = array("id"=&gt;$row["article_id"],
                       "title"=&gt;$row["title"],
                       "image"=&gt;$row["image"],
                       "text"=&gt;$row["article_text"]);
      }
      echo json_encode($arr);
  }
  </code></pre>
  
  <p>This is not returning anything. So i removed <code>"text"=&gt;$row["article_text"]</code> from array, It worked. All the data returned as a JSON array. Is this a data type issue or my coding issue. How can i solve this ?. Thank you.</p>