i want to echo one value from mysql column which is 90% similar to php variable. echo only the value that is 90% similar to php value. i think like clause wont help in this case.
  <?php
  $x = $_GET[x];
  $con=mysqli_connect("example.com","peter","abc123","my_db");
  $res =  mysqli_query($con,"SELECT * FROM text");
  while ($row = mysql_fetch_assoc($res))
 {
     $string[] = $row['text'];
 }
  foreach ($string as $y)
 {
  similar_text($x, $y, $percent);
 }
  if ($percent>"90")
 {
   echo $string ; 
  ?>
i think the above code has many mistakes. i welcome some new solution for my task.