Bech100 wrote:What about files with a four letter extension!?
tiff
jpeg
etc...
Mark
Code: Select all
<?
$fileWithoutExtension = substr($imgArray[$randval],0,strrpos($imgArray[$randval],".") + 0);
echo $fileWithoutExtension;
?>Bech100 wrote:What about files with a four letter extension!?
tiff
jpeg
etc...
Mark
Code: Select all
<?
$fileWithoutExtension = substr($imgArray[$randval],0,strrpos($imgArray[$randval],".") + 0);
echo $fileWithoutExtension;
?>