I have this:
15_some_text_or_numbers;
I want to get whats in front of the first underscore. There is always a letter directly after the fir
Simpler than a regex:
$x = '14_hello_world'; $split = explode('_', $x); echo $split[0];
Outputs 14.