So here's my problem. I made a clone to paypal where i store the bank account#. It's encrypted goes into mysql decrypted displayed on a page as paypal does. I want to show the last say 4 digits of the account number. However it seems they aren't all the same length so i can't use the beginning and ending part of substr. I also can't use the substr($var, -4) taking 4 from the end because when i decrypt it it comes back as a string with the lenth of 16 even if it's less than 16 digits so if it's entered as 10 digits and do -4 of substr i get nothing. I can't figure how the length is 16. There aren't any spaces in the string. Also if entered into the db as more than 16 it returns as a length of 32.
Thanks in advance