dk4210 Posted May 23, 2007 Share Posted May 23, 2007 Hey Guys, What function can I use to replace numbers.. For example if I wanted to have php mailer email the credit card number say 111111111111 to the admin but I want to replace most of the numbers like this **********1111 for example.. What function would I use? Thanks, Dan Quote Link to comment https://forums.phpfreaks.com/topic/52702-numbers-replace/ Share on other sites More sharing options...
Gmunky Posted May 23, 2007 Share Posted May 23, 2007 $number= 111111111111; $newnumber= "********" . substr($number,12,4); Quote Link to comment https://forums.phpfreaks.com/topic/52702-numbers-replace/#findComment-260224 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.