Replace letters with asterisks except first and last character using MYSQL [duplicate] - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Tuesday, December 7, 2021

Replace letters with asterisks except first and last character using MYSQL [duplicate]

How can I Replace letters with asterisks except first and last character for example: house -> h***e Database

<div id="ld">    
        <?php
    $base=mysqli_connect('localhost','root','','exercise');
    $request="select text from exercise";
       /*
       Here I want to show all words from database but with letters replaced
       with asterisks (expect first and last letter)
      */
    mysqli_close($base)
        ?>
  </div>


source https://stackoverflow.com/questions/70229078/replace-letters-with-asterisks-except-first-and-last-character-using-mysql

No comments:

Post a Comment