I have something like this:
<?php $pages = array('home', 'docs', 'app', 'userg','appviz');
if (!isset($_GET['_page']) || !in_array($_GET['_page'], $pages))
list($_page) = $pages;
else
$_page = $_GET['_page'];
include "pages/{$_page}.html";
?>
I want to include "pages/{$_page}.php"
along with the .html.
How do i do that?