{"id":81272,"date":"2004-08-10T03:27:26","date_gmt":"2004-08-10T03:27:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/function-declaration-error\/"},"modified":"2016-08-18T18:26:30","modified_gmt":"2016-08-18T18:26:30","slug":"function-declaration-error","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/function-declaration-error\/","title":{"rendered":"Function Declaration Error"},"content":{"rendered":"<p>Hey, sorry that this is more of a PHP question than a WordPress one but I figured that you guys might have run into the same problem and could provide a quick answer.<br \/>\nAnyway, I&#8217;m moving my site over to WordPress (from Movabletype) and my PHP skills are rudimentary at best.   I also run phpBB, and as part of my main index page I&#8217;m attemping to include a &#8220;latest post&#8221; type of thing (using a plugin for phpBB).  The problem is this: one of the files necessary for this to work (either in the plugin code or phpBB itself, not sure which) declares a <code>get_userdata()<\/code> function, which it can&#8217;t actually do since WordPress already does.<br \/>\nIn short, is there any way to make use of a namespace (like in C\/C++) or some other such workaround that can alleviate this problem?<\/p>\n","protected":false},"template":"","class_list":["post-81272","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/81272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/81272\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=81272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}