<?php
  $servername="localhost";
  $username="root";
  $password="";
  $dbname="abc";
  $sql=mysqli_connect($servername,$username,$password,$dbname)
  $get=mysqli_query($sql,"SELECT * FORM table_name")
  $dta=array();
  while($fetch=mysqli_fetch_assoc($get)){
      array_push($dta,$fetch);
  }
  $dta=preg_replace("/<br>/",'\n',$dta);
  $json=json_encode($dta);
  echo $json;
  exit;
?>
I want to replace the data form the data base. Want to replace column values from 
 with 
For example:
- I have some columns like A, B, C
- Column A has data like qwe <br> qu
- I want the result of column A would be like qwe <n> qu
Note: The above small example has more than 20 columns.
 
     
     
     
    