From: Gamshad, M. <Moh...@sc...> - 2006-01-30 18:39:22
|
I'll try again: =20 I am trying to find out how to code in my php client the data required for a service call, or more generally finding out what is the relationship between the coded php and the serialized data elements: =20 For example, I know that if I have: =20 $data =3D array('address' =3D> '123 st', 'city' =3D> 'any'); =20 that I get : =20 <address>123 st</address> <city>any</city> =20 =20 I then have two questions: if 'address' was supposed to be an array would it be sufficient to do: =20 $data =3D array('address' =3D> array('home' =3D> '232 lane', 'office' = =3D> '123 main'), 'city' =3D> 'any'), i.e. would this generate:=20 =20 <address> <home>232 lane</home> <office>123 main</office> </address> =20 <city>any</city> =20 =20 And second, what form does the php code get if I wanted the final serialized data to look like this, e.g. : =20 <address type=3D'home'>123 lane </address> =20 i.e. how do you code for a data element that is ultimately an attribute of an element? =20 Thanks, Mohsen |