roshanjameer
03-21-2007, 01:43 PM
hi,
i want to print the file name with out extension.here is my code for getting the extension.but how i can get only file name without extension
<?php
$file = "welcome.txt";
$aFile = explode(".", $file);
$ext = array_pop($aFile);
echo $ext;
?>
any of your idea will be appreciated.
thanks
mrjameer.
i want to print the file name with out extension.here is my code for getting the extension.but how i can get only file name without extension
<?php
$file = "welcome.txt";
$aFile = explode(".", $file);
$ext = array_pop($aFile);
echo $ext;
?>
any of your idea will be appreciated.
thanks
mrjameer.