i need to trim a student id

below is my php code

$stud_id ='MCC-2011-2012-0001'
//what is the code to remove the MCC-2011-2012- so that i can retrieve the 0001
//or code to remove the first 14 characters
echo $stud_id;

//thanks a lot...:)

You shouldn't be asking people to write your code for you, it appears you're doing this for school or some other project.

However, to direct you in the right direction, have a look at the PHP 'explode()' function.


There are some examples on that page that should show you what you need to do.