HuggieBear Posted October 5, 2006 Share Posted October 5, 2006 I'm not sure what just happened to this topic, but this code works.RegardsHuggie[code]<?phpfunction tables () { $tablepre = "prefix_"; $tables = array('settings', 'modules', 'news'); foreach ($tables as $tablename) { $key = "table_$tablename"; $tablenames[$key] = $tablepre.$tablename; } return $tablenames;}$mytables = tables();var_dump($mytables);?>[/code] Quote Link to comment Share on other sites More sharing options...
marcus Posted October 5, 2006 Share Posted October 5, 2006 hmm, it comes up with no errors for me, what error are you returning? Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 5, 2006 Share Posted October 5, 2006 thats funny the forum post went wrong joker mgallforever you no that huggiebear was given a reply. Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted October 5, 2006 Author Share Posted October 5, 2006 I'm not getting an error, I pasted this reply for someone else saying that this code works, but the original post disappeared, so I added this solution as a new topic.RegardsHuggie Quote Link to comment Share on other sites More sharing options...
marcus Posted October 5, 2006 Share Posted October 5, 2006 newb's post? Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted October 5, 2006 Author Share Posted October 5, 2006 Yeah, I think it was.Huggie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.