Hi,
$title="Cats & Dogs.TS";
$ext = ".TS";
$title = preg_replace($ext, "", $title);Ergebnis:
$title = "C & Dogs"
Das ist ausserdem glatt gelogen - das „Ergebnis“ des gezeigten Codes ist
Warning: preg_replace() [function.preg-replace]: No ending delimiter '.' found
MfG ChrisB
--
The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka!” but “That's funny...” [Isaac Asimov]
The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka!” but “That's funny...” [Isaac Asimov]