me1000 Posted June 27, 2008 Share Posted June 27, 2008 I feel like an idiot for asking this, but I need some help... I have a simple 2D array, $oObj->specailPageList = array( 'login' => 'login.php' ); Now I want to get the value of row... (in this case I want "login.php") to be returned... I just cant turn anything up! echo $oObj->specailPageList["login"]; Thanks, Link to comment https://forums.phpfreaks.com/topic/112125-solved-help-with-array-simple/ Share on other sites More sharing options...
cooldude832 Posted June 27, 2008 Share Posted June 27, 2008 can we see the whole script if your in the class you need to use $this->specialPageList['Login']; also special is special not specail spelling errors will kill you eventually. Link to comment https://forums.phpfreaks.com/topic/112125-solved-help-with-array-simple/#findComment-575637 Share on other sites More sharing options...
me1000 Posted June 27, 2008 Author Share Posted June 27, 2008 actually that was a typo... however the "$this->" fixed it... Like I said, I figured it was a stupid mistake like that! I appreciate the assistance. Thank You, Link to comment https://forums.phpfreaks.com/topic/112125-solved-help-with-array-simple/#findComment-575639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.