Jump to content

[SOLVED] Splitting a credit card number?


Solarpitch

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.