php add to string after certain character 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 insert character into string
$newstr = substr_replace($oldstr, $str_to_insert, $pos, 0);