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] Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/ 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? Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/#findComment-104656 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. Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/#findComment-104658 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 Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/#findComment-104660 Share on other sites More sharing options...
marcus Posted October 5, 2006 Share Posted October 5, 2006 newb's post? Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/#findComment-104664 Share on other sites More sharing options...
HuggieBear Posted October 5, 2006 Author Share Posted October 5, 2006 Yeah, I think it was.Huggie Link to comment https://forums.phpfreaks.com/topic/23124-table-function-doesnt-work/#findComment-104665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.