A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Moderators: egami, macek, gesf
Fri May 23, 2014 12:45 pm
Code: Select all
$string = 'bik_bij_12_something.jpg';
echo substr($string, 0, strrpos($string, '_', 3)); // bik_bij_12
Return to “PHP coding => General”