A
apple_mac
Гость
Работаю с XML интерфейсами WebMoney, делаю запрос на сервер WebMoney, и получаю ответ: Показать / Скрыть текстSimpleXMLElement Object ( [@attributes] => Array ( [retval] => 0 ) [fullaccess] => 0 [certinfo] => SimpleXMLElement Object ( [@attributes] => Array ( [wmid] => 120031369516 ) [attestat] => SimpleXMLElement Object ( [row] => SimpleXMLElement Object ( [@attributes] => Array ( [cid] => 5789 [regcid] => 10 [tid] => 150 [locked] => 0 [admlocked] => 0 [recalled] => 0 [datecrt] => 2003-01-30T13:12:30.700 [datediff] => 3745 [regnickname] => WM Passport Service /Центр аттестации/ [regwmid] => 464889785562 [status] => 11 [notary] => 0 ) ) ) [wmids] => SimpleXMLElement Object ( [row] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [wmid] => 120031369516 [info] => [nickname] => Регистратор Ростов-на-Дону [datereg] => 2003-01-21T23:08:08.933 [yearreg] => 2003 [monthreg] => 1 [dayreg] => 21 [timereg] => 23:08:08 [ctype] => 1 [companyname] => [companyid] => [phone] => 79185552993 [email] => 120031369516@wmkeeper.com [phone-check-lock] => 10 [email-check-lock] => 10 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [wmid] => 269924013341 [info] => [nickname] => Хостинг wmhost.ru [datereg] => 2008-02-04T12:36:17.140 [yearreg] => 2008 [monthreg] => 2 [dayreg] => 4 [timereg] => 12:36:17 [ctype] => 2 [companyname] => ИНДИВИДУАЛЬНЫЙ ПРЕДПРИНИМАТЕЛЬ МУХИН Д.В. [companyid] => ИНН:616114616301 [phone] => 79185769992 [email] => support@wmhost.ru [phone-check-lock] => 10 [email-check-lock] => 10 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [wmid] => 655861481564 [info] => [nickname] => 655861481564 [datereg] => 2003-05-03T12:09:25.200 [yearreg] => 2003 [monthreg] => 5 [dayreg] => 3 [timereg] => 12:09:25 [ctype] => 1 [companyname] => [companyid] => [phone] => 79185552993 [email] => support@autoexchanger.ru [phone-check-lock] => 10 [email-check-lock] => 10 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [wmid] => 692773806571 [info] => [nickname] => Arbitr [datereg] => 2001-10-09T17:04:45.530 [yearreg] => 2001 [monthreg] => 10 [dayreg] => 9 [timereg] => 17:04:45 [ctype] => 1 [companyname] => [companyid] => [phone] => [email] => [phone-check-lock] => 11 [email-check-lock] => 11 ) ) ) ) [userinfo] => SimpleXMLElement Object ( [value] => SimpleXMLElement Object ( [row] => SimpleXMLElement Object ( [@attributes] => Array ( [ctype] => 1 [jstatus] => 1 [osnovainfo] => [locked] => 0 [nickname] => Регистратор Ростов-на-Дону [infoopen] => [city] => Саратов [region] => Саратовская область [citid] => 4882 [countryid] => 195 [country] => Россия [zipcode] => 344002 [adres] => Большая Садовая, дом 23 [fname] => Мухин [iname] => Денис [oname] => Владимирович [pnomer] => [pdate] => [pday] => [pmonth] => [pyear] => [pdateMMDDYYYY] => [pcountryid] => [pcountry] => [pcity] => [pcitid] => [pbywhom] => [ncountryid] => [ncountry] => [ntype] => 1 [rcountryid] => [rcountry] => [rcity] => [rcitid] => [radres] => [bplace] => [bday] => [bmonth] => [byear] => [name] => [dirfio] => [buhfio] => [inn] => [okpo] => [okonx] => [jadres] => [jcountry] => [jcountryid] => [jcity] => [jzipcode] => [bankname] => [bik] => [ks] => [rs] => [phonehome] => [phonemobile] => [icq] => [fax] => [phone] => 79185552993 [email] => 120031369516@wmkeeper.com [web] => [cap_owner] => 0 [pasdoc] => 1 [inndoc] => 1 [jabberid] => [sex] => 1 [permis] => 101001001000000000000011101101100000000000100000001110110000 [regcheck] => 010100010000000000111011101101100000000000000000000000100000 ) ) ) [check-lock] => SimpleXMLElement Object ( [row] => SimpleXMLElement Object ( [@attributes] => Array ( [ctype] => 00 [jstatus] => 00 [osnovainfo] => 00 [nickname] => 00 [infoopen] => 01 [city] => 00 [region] => 00 [country] => 00 [adres] => 00 [zipcode] => 10 [fname] => 10 [iname] => 10 [oname] => 10 [pnomer] => 11 [pdate] => 11 [pbywhom] => 11 [pcountry] => 11 [pcity] => 11 [ncountryid] => 01 [ncountry] => 01 [rcountry] => 11 [rcity] => 11 [radres] => 11 [bplace] => 11 [bday] => 11 [inn] => 01 [name] => 00 [dirfio] => 00 [buhfio] => 00 [okpo] => 00 [okonx] => 00 [jadres] => 00 [jcountry] => 00 [jcity] => 00 [jzipcode] => 00 [bankname] => 00 [bik] => 00 [ks] => 00 [rs] => 00 [fax] => 01 [email] => 10 [web] => 01 [phone] => 10 [phonehome] => 01 [phonemobile] => 01 [icq] => 01 [jabberid] => 01 [sex] => 00 ) ) ) [weblist] => SimpleXMLElement Object ( [row] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [url] => [check-lock] => 01 [ischeck] => 0 [islock] => 1 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [url] => http://wmhost.ru [check-lock] => 10 [ischeck] => 1 [islock] => 0 ) ) ) ) [extendeddata] => SimpleXMLElement Object ( ) ) ) )Задача - вывести WMIDы пользователя в цикле foreachСейчас вывожу так основной WMID $wm = strval($data->certinfo->wmids->row['wmid']);echo $wm;И вот так дополнительный $wms = strval($data->certinfo->wmids->row[1]['wmid']);echo $wms;Вот не как не могу собразить как вывести WMIDы в цикле foreach