私はXMLファイルを持っています、
<root>
<items>
<webprotal-gallery>
<web-portal-urls>http://xxx.xom/image</web-portal-urls>
<web-portal-urls>http://xxx.xom/image</web-portal-urls>
<----- ----------- --------------- ------------>
</webprotal-gallery>
</items>
<items>
<webprotal-gallery>
<web-portal-urls>http://xxx.xom/image</web-portal-urls>
<web-portal-urls>http://xxx.xom/image</web-portal-urls>
</webprotal-gallery>
</items>
</root>
「web-portal-urls」を連想配列 (キー/値) にプッシュしたい。私の要件は、ユーザーが画像をクリックしたときに、別のページに関連する「webprotal-gallery」を表示することです。
ギャラリー アイテムを配列にプッシュする方法。