Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我从 joomla 2.5 的数据库内容中检索多列时,我遇到了 joomla 的问题,其中列是“id”、“introtext”、“id”。我得到的输出如下
Array([0] => Array([id]=>1 [introtext]=> lorent ipsum [catid]=> 8) [1] => Array([id]=>2 [introtext]=> lorent ipsum [catid]=>9))
我想用php分别获取id、introtext、catid。请帮助我...谢谢
foreach($data as $d){ echo "id: ".$d['id']; echo "introtext: ".$d['introtext']; echo "catid: ".$d['catid']; }