The second argument is the starting index, and the third argument is the length of the string. If the 3rd argument is missing, you'll get the rest of the string.
$rest = substr("jKsuSposdfsdfsdrtTopics", 0, 4);
$rest2 = substr("jKsuSportsdffdsTopics", 4);
- answered 1 year ago
- Community wiki