get the string after a character in php

76

$data = "123_String";    
$whatIWant = substr($data, strpos($data, "_") + 1);    
echo $whatIWant;

Comments

Submit
0 Comments