lordzardeck Posted February 22, 2009 Share Posted February 22, 2009 I cannot figure out why it has a problem with the next to last curly brace. It says its unexpected. Anyone got any Ideas? function add_menu() { $menu = array(); foreach(find_Plugins() as $plugin) { if($plugin->hasMethod('get_menu')) { $reflectionMethod = $plugin->getMethod('get_menu'); if($reflectionMethod->isStatic()) { $items = $reflectionMethod->invoke(null); } else { //If the method isn't static we need an instance $pluginInstance = $plugin->newInstance(); $items = $reflectionMethod->invoke($pluginInstance); } $menu = array_merge($menu, $items); } ` ` } return $menu; } Link to comment https://forums.phpfreaks.com/topic/146359-solved-what-is-up-with-this/ Share on other sites More sharing options...
Cal Posted February 22, 2009 Share Posted February 22, 2009 hehe ` ` } There's two little alternate quote things, remove them. Link to comment https://forums.phpfreaks.com/topic/146359-solved-what-is-up-with-this/#findComment-768401 Share on other sites More sharing options...
lordzardeck Posted February 22, 2009 Author Share Posted February 22, 2009 Man, sometime color coding is bad. I didn't see that because it was colored as almost white! Thanks! Link to comment https://forums.phpfreaks.com/topic/146359-solved-what-is-up-with-this/#findComment-768403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.