http://php.net/manual/en/function.substr.php
Edit: using google usually does the trick
Edit2: although to be fair, I did know that one already
Edit3: Using the exact words you typed (give or take): http://lmgtfy.com/?q=php+find+last+letters+of+string
Last edited by rookwood101 (2011-09-16 17:17:00)
Offline
rookwood101 wrote:
http://php.net/manual/en/function.substr.php
Edit: using google usually does the trick
Edit2: although to be fair, I did know that one already
So what do i type. I can't exactly figure out how to set start to false.
Offline
PageIjustgaveyou wrote:
If start is negative, the returned string will start at the start'th character from the end of string.
PageIjustgaveyou wrote:
$rest = substr("abcdef", -1); // returns "f".
PageIjustgaveyou wrote:
$rest = substr("abcdef", -2); // returns "ef"
PageIjustgaveyou wrote:
$rest = substr("abcdef", -3, 1); // returns "d"
Last edited by rookwood101 (2011-09-16 17:20:56)
Offline