Convert last name to ****

rsbypi4

New member
PHP:
<?php
$name = $row->Full_name; //----Let say the data from DB and the value is JOHN CENA.

// Now the output is look like this this.,

echo " JOHN ****"; //--------expectation, it display the first name but the last name it well *****.


?>
    
// I have some research in internet but some code not working properly.,
 
PHP:
<?php
$name = $row->Full_name; //----Let say the data from DB and the value is JOHN CENA.

// Now the output is look like this this.,

echo " JOHN ****"; //--------expectation, it display the first name but the last name it well *****.


?>
   
// I have some research in internet but some code not working properly.,
Good day everyone., I already solve this problem.,
I use
PHP:
str_pad($strtok_str , 10, "*");
to solve this problem
 
Back
Top