我的陣列是 Array ([0] => Array ([0] => Array ([book_title] => Brief History of Time: From Big Bang to Black Hole [pd_id] => p22670689244706 [price] => 499.00 [author] => Stephen W. Hawking [book_type] => pb [status] => Pending)) [1] => Array ([0] => Array ([book_title] => The Art of Computer Programming, Volume 4A [pd_id] => p23662839087202 [price] => 899.00 [author] => Donald E. Knuth [book_type] => pb [status] => Pending)))
PHP數組輸出
如何打印book_title
,價格,book_type
鑑於頁面笨?
您控制器函數寫代碼創建新的視圖和控制器中,這將是足以表明你在視圖陣列添加。查看我的答案,下面有完整的描述 –
看看tihs http://codeigniter.com/user_guide/general/views.html,請不要發佈問題,出去搜索它:(,有很多例子,只需鍵入「查看codeigniter「在谷歌 –