Re: substr?

From: Date: Thu, 19 Jun 2008 15:44:59 +0000
Subject: Re: substr?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-275611@lists.php.net to get a copy of this message
Try this: <?php $filename = 'this_example.php.file.backup.phps'; echo substr($filename,(strrpos($filename,'.') + 1),strlen($filename))."\n"; ?> -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo.

« previous php.general (#275611) next »