php get string before 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 get string before character
$arr = explode("/", $string, 2);
$first = $arr[0];