get integer before character php code example
Example 1: get the string after a character in php
$data = "123_String";
$whatIWant = substr($data, strpos($data, "_") + 1);
echo $whatIWant;
Example 2: php get first character of string
$firstStringCharacter = substr("hello", 0, 1);