php ??合??

WBOY
リリース: 2016-06-23 14:24:17
オリジナル
965 人が閲覧しました

1. 掴一???:
[{"0":"1011","post_id":"1011","1":"4","post_parent":"4","2":"hkbc_program_name_image ","meta_key":"hkbc_番組名画像","3":"50","meta_value":"50"},{"0":"1011","post_id":"1011","1":"4 ","post_parent":"4","2":"hkbc_番組名_special","meta_key":"hkbc_番組名_special","3":"462","meta_value":"462"},{"0":"1011 ","post_id":"1011","1":"4","post_parent":"4","2":"hkbc_program_ad","meta_key":"hkbc_program_ad","3":"581", "meta_value":"581"},{"0":"1011","post_id":"1011","1":"4","post_parent":"4","2":"hkbc_program_ad_url", "meta_key":"hkbc_program_ad_url","3":"http://music.baidu.com/","meta_value":"http://music.baidu.com/"},{"0":"1011 ","post_id":"1011","1":"4","post_parent":"4","2":"hkbc_program_sort","meta_key":"hkbc_program_sort","3":"1.1", "meta_value":"1.1"},1.1"},{"0":"1009","post_id":"1009","1":"117","post_parent":"117","2": "hkbc_program_name_image","meta_key":"hkbc_program_name_image","3":"119","meta_value":"119"},{"0":"1009","post_id":"1009","1": "117","post_parent":"117","2":"hkbc_program_name_special","meta_key":"hkbc_program_name_special","3":"463","meta_value":"463"},{"0": "1009","post_id":"1009","1":"117","post_parent":"117","2":"hkbc_program_ad","meta_key":"hkbc_program_ad","3":"111 ","meta_value":"111"},{"0":"1009","post_id":"1009","1":"117","post_parent":"117","2":"hkbc_program_ad_url ","meta_key":"hkbc_program_ad_url","3":"http://baike.baidu.com/view/1433405.htm","meta_value":"http://baike.baidu.com/view/1433405 .htm"},{"0":"1009","post_id":"1009","1":"117","post_parent":"117","2":"hkbc_program_sort","meta_key": "hkbc_program_sort","3":"7","meta_value":"7"}]
?合?一??似:
[{"post_id":"1011","post_parent":"4"," hkbc_program_name_image":"50","hkbc_program_name_special":"462","hkbc_program_ad":"581","hkbc_program_ad_url":"http://music.baidu.com/","hkbc_program_sort":"1.1"},{ "post_id":"1009","post_parent":"117","hkbc_program_name_image":"119","hkbc_program_name_special":"463","hkbc_program_ad":"111","hkbc_program_ad_url":"http://baike .baidu.com/view/1433405.htm","hkbc_program_sort":"7"}]


回复讨论(解决方案)

密密麻麻、、我都不想看能来个简单点的用例子么

[{"0":"1011","post_id":"1011","1":"4","post_parent":"4","2":"hkbc_番組名_画像","meta_key":"hkbc_番組名_画像" ,"3":"50","meta_value":"50"},{"0":"1011","post_id":"1011","1":"4","post_parent":"4" ,"2":"hkbc_番組名_special","meta_key":"hkbc_番組名_special","3":"462","meta_value":"462"}]
?合?:
[{"post_id":"1011", "post_parent":"4","hkbc_program_name_image":"50","hkbc_program_name_special":"462"}]

post_id は 1101 だけではなく、たくさんあります

json として読み込み、マージして整数キーを削除しますか?

??はい、1011です。
??形式は上記の形式ですが、たくさんあります

jsonに従って読み込み、マージして整数キーを削除します。
その目的のソースはありますか?

このデータはどこで入手しましたか? 数値キーが必要ない場合は、連想のみで生成できます。配列が生成されます。

json として読み取り、マージしてから整数キーを削除しますか?
あなたのアイデアは正しく、解決され、完了しました。

関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
最新の問題
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート