PHP Substring Replace – String Function

 
    <?php
   $ccnumber = "1234567899991111";
   echo substr_replace($ccnumber,"************",0,12);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.