3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mystring = "seminar_juridic_sergiu_22_01_2013_2"; //get "juridic" out of the string $uline_pos = strpos($mystring,'_'); $str_no_prefix=substr($mystring,$uline_pos+1); $uline_pos = strpos($str_no_prefix,'_'); $final_string = substr($str_no_prefix,0,$uline_pos); echo $final_string;
Output for 4.3.0 - 7.2.0
juridic