thats was very help..however it even strips of the alphabates and thats not what i wanted. however i found another way incase someone is interested.
$values[]="00010";
$values[]="0001A M";
$values = preg_replace("/(0)(.)/s","$2",$values);
$values = str_replace(' ', '',$values);