In the code below, the aboutMenuNames array gets overwritten with the
values in mainMenuNames in the constructor. What am I doing wrong?
class dynamicMenu {
var $mainMenuNames;
var $aboutMenuNames ;
//
// Constructor
//
function dynamicMenu() {
$this->$aboutMenuName s = array("About Us",
"Statement of Faith",
"About Our Pastor",
"Directions to Us",
"Contact Us");
$this->$mainMenuNam es = array("Home",
"AboutUs",
"ForAdults" ,
"ForTheKids ",
"ForTheYout h",
"WantToServ e");
}
};
values in mainMenuNames in the constructor. What am I doing wrong?
class dynamicMenu {
var $mainMenuNames;
var $aboutMenuNames ;
//
// Constructor
//
function dynamicMenu() {
$this->$aboutMenuName s = array("About Us",
"Statement of Faith",
"About Our Pastor",
"Directions to Us",
"Contact Us");
$this->$mainMenuNam es = array("Home",
"AboutUs",
"ForAdults" ,
"ForTheKids ",
"ForTheYout h",
"WantToServ e");
}
};
Comment