- strpos: documentation ( source)
- stristr: documentation ( source)
- array_values: documentation ( source)
<?php
if (strpos($tbl[0],DB_PREFIX) !== false && !stristr($tbl[0],'_fc_')) {
$tablename = $tbl[0];
$flds=$db->getAll("describe ".$tablename);
$fields=array();
foreach($flds as $nm=>$fldx) {
$fld = array_values($fldx);
$fields[$fld[0]]=$fld[1];
}
$tables[$tablename]=$fields;
}
?>