Possible Duplicate:
Can I include code into a PHP class?
Include file in array
I have this php code
<?php
class Config {
public static $__routes = array(
"Home" => "index.php",
"Support" => "support.php",
"Ads" => "ads.php",
);
}
?>
and i have ex.php file like this
"Upgrade" => "upgrade.php",
"Faq" => "faq.php",
"Tos" => "tos.php",
I want to include ex.php file in "public static $__routes array" which in "class"
Something to be like
<?php
class Config {
public static $__routes = array(
"Home" => "index.php",
"Support" => "support.php",
"Ads" => "ads.php",
include 'ex.php';
);
}
?>
Please how i can do that ?