$string = 'information-0-the-name-of-the-company';
$pieces = explode("-", $string);
$first = $pieces[0];
$second = $pieces[1];
This produces:
$first = 'information';
$second = '0';
I need solution how to get the rest of the string:
$third = 'the-name-of-the-company';
Probably it's hard to understand what I mean. I need to remove first 2 parts separated by "-" from the string and to print the rest. The first 2 parts always are:
1) letters (a-z)
2) numbers (0-9)
Examples:
$string = 'information-1-yahoo';
$string = 'information-10-my-company';
$string = 'information-120-php-builder-com';
Thanks.