Jump to content

[SOLVED] split variable for only the last 4 digits


DrTrans

Recommended Posts

my variable : $variable = "27-5274594" 

 

How do i pull the last 4 digits of the $variable  without setting $variable = "4594";

 

in example:

 

$variable = $row['TaxID'];

<< Where variable would be transformed to only the last 4 digits >>

 

print "$variable";

 

 

 

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.