hey yall how can i take a number like 120642 and delete all numbers except the last two digits so i end up with 42 . i would like to accomplish this task using some kind of php coding any ideas
SwedBo's will give you a string answer with a length of 2 characters always. That means the result for 120602 will be "02". If you want the result to be a number (no leading zeros) use: (120602 % 100) The result for that will be '2'. In addition the modulus operator (%) will also work in any other situation. (120642 % 100) will be 42