PHP WDDX: Struct Element

Web Distributed Data Exchange Step By Step tutorial - Part 6: in WDDX scope, it is like array but only for string-based indexes (if numeric-based, we use array element). Hope, it is simple to understand. Look following sample:

If we want to write:

$students = array('stud1'=>'Ilmia','stud2'=>'Aqila','stud3'=>'Imanda');

We can write:

<wddxPacket version='1.0'>
  <header />
    <var name="students">
	    <var name="stud1">
	    <var name="stud2">
	    <var name="stud3">

Series this article:
PHP WDDX: Introduction
PHP WDDX: Understanding Anatomy of WDDX
PHP WDDX: Understanding Data Elements
PHP WDDX: Understanding Simple Data Type
PHP WDDX: Using Array Elements
PHP WDDX: Struct Element
PHP WDDX: Recordset Element
PHP WDDX: Simple Serialization Using PHP function
PHP WDDX: Complex Serialization
PHP WDDX: Unserializing Data
PHP WDDX: Creating Web Service Server
PHP WDDX: Creating Web Service Client

Bookmark and Share Tag: wddx, distributed data, data type, elements, struct, array Category: Post : April 29th 2008 Read: 23,091


blog comments powered by Disqus