string replace
| From: | Tait Grove | Date: | Tue, 16 Jan 2001 20:01:01 +0000 |
| Subject: | string replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34892@lists.php.net to get a copy of this message | ||
How can I strip everything past a certain character in a string?
i.e.:
$foo = "test.gif";
// strip past the .gif
$foo = "test";
// again
$foo2 = "test.jpeg";
// strip past the .jpeg
$foo2 = "test";
Tait