2012-02-11 174 views
1
Array 
(
    [0] => Array 
    (
     [faq_id] => 14 
     [faq_faqcat_id] => 3 
     [faq_order] => 8 
     [faq_subject] => 800018 
     [faq_content] => 800019 
     [faq_datecreated] => 1213382678 
     [faq_dateupdated] => 1215547984 
     [faq_views] => 22 
    ) 

    [1] => Array 
    (
     [faq_id] => 15 
     [faq_faqcat_id] => 3 
     [faq_order] => 9 
     [faq_subject] => 800020 
     [faq_content] => 800021 
     [faq_datecreated] => 1213382698 
     [faq_dateupdated] => 1215547986 
     [faq_views] => 13 
    ) 

    [2] => Array 
    (
     [faq_id] => 16 
     [faq_faqcat_id] => 3 
     [faq_order] => 10 
     [faq_subject] => 800022 
     [faq_content] => 800023 
     [faq_datecreated] => 1213382711 
     [faq_dateupdated] => 1215547988 
     [faq_views] => 15 
    ) 
) 

上述數據是PHP腳本的輸出。我必須將其轉換爲JSON對象並在iPhone上顯示。任何人都可以請告訴如何?PHP/JSON解析

回答