Jump to content

Table function doesn't work...


HuggieBear

Recommended Posts

I'm not sure what just happened to this topic, but this code works.

Regards
Huggie

[code]
<?php
function 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.