Hi. How do I preg_replace .php from end of string?
for ($x = 0; $x < count($sidebar_links); $x++) {
$sidebar[$x] = $x;
}
$sidebar_links:
array(3) { [0]=> string(9) "index.php" [1]=> string(9) "site2.php" [2]=> string(7) "site3.php" }