Solarpitch Posted June 30, 2008 Share Posted June 30, 2008 Hi, I am processing a form with a credit card number but I'm only interested in the first 12 numbers and need to exclude the last 4. How can I truncate the last 4 numbers if they were all submitted in the one textfield. Is there a way I can do this? Thanks Link to comment https://forums.phpfreaks.com/topic/112548-solved-splitting-a-credit-card-number/ Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 use substr(); http://au2.php.net/manual/en/function.substr.php ACE Link to comment https://forums.phpfreaks.com/topic/112548-solved-splitting-a-credit-card-number/#findComment-577991 Share on other sites More sharing options...
Solarpitch Posted June 30, 2008 Author Share Posted June 30, 2008 Grand job, thanks Ace. Link to comment https://forums.phpfreaks.com/topic/112548-solved-splitting-a-credit-card-number/#findComment-577998 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.