Jump to content

remove first 2 digits.


project3

Recommended Posts

Well, do you want to remove the first two digits or keep the last two digits? those are two different things - unless we make the assumption that the value will always be four characters long.

 

This will return the last two charcters from a value:

 

$last_two = substr($original_value, -2);

Link to comment
https://forums.phpfreaks.com/topic/94780-remove-first-2-digits/#findComment-485332
Share on other sites

Well, do you want to remove the first two digits or keep the last two digits? those are two different things - unless we make the assumption that the value will always be four characters long.

 

This will return the last two charcters from a value:

 

$last_two = substr($original_value, -2);

 

Thanks!!!!!!!!!

Link to comment
https://forums.phpfreaks.com/topic/94780-remove-first-2-digits/#findComment-485335
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.