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 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); Link to comment https://forums.phpfreaks.com/topic/52702-numbers-replace/#findComment-260224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.