- substr: documentation ( source)
- trim: documentation ( source)
<?php
$drift = 'DRIFT TAXI BIERFEST 10:00 - 10:30';
$race = 'Race TAXI BIERFEST 09:00 - 09:30';
echo substr($drift, -13).PHP_EOL;
echo trim(substr($drift, 0, 10)).PHP_EOL;
echo trim(substr($race, 0, 10)).PHP_EOL;