Hi all,
i have this array
It retrieves the values by scanning a directory where there are only two files
For some strange(for me) reason it also loads
into the array.
My goal is to clean the array above from "~" and ".php"
and put only the filenames into variables like these:
Thanks in advance for helping.
i have this array
Code:
Array ( [0] => . [1] => .. [2] => serverstats.php [3] => phpstats.php [4] => phpstats.php~ [5] => serverstats.php~ )
Code:
serverstats.php and phpstats.php
Code:
serverstats.php~ and phpstats.php~
My goal is to clean the array above from "~" and ".php"
and put only the filenames into variables like these:
Code:
$first_file = "serverstats";
$second_file = "phpstats";