- var_dump: documentation ( source)
- preg_replace: documentation ( source)
- ucfirst: documentation ( source)
<?php
$title = 'Unser nächster Inbound ist da';
$tagName = preg_replace('/[^\w-_ÄÖÜäöüß]/', '', $title);
var_dump($tagName);
$tagName = preg_replace('/[^\w-_ÄÖÜäöüß]/', ' ', $title);
var_rump(ucfirst($tagName));