Ultimately what I need is the PHP version of substring. I have a string that looks like this:
12345:1
It could also be:
1234567:2
Meaning the number before the : could be of any length. The part after the : will always be 1 in length.
So what I want to do is this:
str.substring(0,-2);
Is there an easier way to do this because I can't seem to find that specific functionality.