How can I check what digit a number ends with in php?

  • Thread starter Thread starter xrachel.louisex
  • Start date Start date
X

xrachel.louisex

Guest
say my random number came up as '25', how would I check if it ended in five, so I can tell it what to do if it does, or what to do if it doesn't.
Thank you ^_^

I'd give best answer to the first person who answered, but the best answer thing has gone. What's up with that? I'll keep checking to see if it comes back or something o.o
first person, not including the ad ^_^
 
Back
Top