rraydan degiskenlere veri gitmiyor
$arg=array();
while($row=mysqli_fetch_array($sorgu)){
foreach($row as $yuk){
$arg[ '#\b'. $row['a'].'\b#si']=$row['b'];}}
$sorgua = $row['a'];
$sorgub = $arg[$row['a']];
$text= preg_replace($sorgua,$sorgub,$text);