<?php

$string = "customer-service/tweep/cs/gsergsergrs/2017-20190Course-Schedule.pdf";
echo preg_replace('~[^/]+/~', "---/", $string);