how to cut number string php code example
Example 1: get last character of string php
substr("testers", -1); // returns "s"
Example 2: get only the first two word from a string php
$message = preg_split('/[\s,]+/', $message, 3)
substr("testers", -1); // returns "s"
$message = preg_split('/[\s,]+/', $message, 3)