阅读背景:

匹配单独的数组值和打印结果

来源:互联网 
// Setup Query
$query = $this->db->query('SELECT * FROM here');

// Pull in the appropriate data for the model
$toolkitName = $this->toolkits_model->find_by('id', $id);

// Strip the commas from incoming array
$matchMeCommas = $toolkitName->toolkits_listitems; 
$matchMe = explode(',', $matchMeCommas);    

// Print ID for each item in toolkit parent list
foreach ($query->result_array() as $row) :
echo $row['id'];
endforeach;

// Match each item from toolkit list item
foreach ($matchMe as $row2) :
echo $row2;
endforeach;
// Setup Query
$query = $this->db->query('SELEC



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: