PHPEveryday.com PHP and Web Development Tutorial
What are you looking for?


PHP WDDX: Understanding Simple Data Type


Web Distributed Data Exchange Step By Step tutorial - Part 4: Simple data type contains only particular data type. It can not contains additional data type. These elements include null, boolean, number, datetime, and string. How do we use them? look this:

Null

The null element represents a NULL value or empty string. This is the element's syntax:

<null/>

boolean

The boolean element represents a Boolean value. The value of this element: true or false. This is case sensitive, so, use lowercase.

<boolean>true</boolean>

number

The number element contain the serialized value for the number 12345, -12345, 12.345, -12.345, and 123456789012345:

<number>12345</number>
<number>-12345</number>
<number>12.345</number>
<number>-12.345</number>
<number>123456789012345</number>

dateTime

The dateTime element carries date and time information in ISO 8601 format. Although PHP doesn't have a native datetime type, we can use date() function with the c format parameter: date('c'). Another alternative is add DATE_ISO8601 constant in PHP 5.1

<dateTime>2008-06-25T15:20:04-04:00</dateTime>

string

The string element contains arbitrary length string that must not contain embedded NULLs.

<string>It is easy to learn php with phpeveryday</string>


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


Tag: wddx, distributed data, data type, elements, simple data type Category: PHP Application Post : April 29th 2008 Read: 2,529 Bookmark and Share

blog comments powered by Disqus


Database Tutorial
  • Learn PHP MySQL
  • Learn PHP ADOdb
  • Learn PHP Data Object/PDO
  • Learn PHP XML
  • Learn PHP SimpleXML
Security Tutorial
  • Learn PHP Security
  • Learn HTTP Authentication
  • Learn PHPSecureSite
Framework Tutorial
  • Learn CodeIgniter
  • Learn Joomla
  • Learn Smarty
  • Learn Zend Framework
Template Tutorial
  • Learn Joomla Template
  • Learn WordPress Template
API Tutorial
  • Learn Facebook
JS Framework Tutorial
  • Learn MooTools
  • Learn JQuery
AJAX Tutorial
  • Learn AJAX in 10 Minutes
  • Learn AJAX Client Side
  • Learn AJAX PHP
  • Learn AJAX Remote Server
  • Learn AJAX Repetitive
  • Learn AJAX MySQL
  • Learn AJAX Grid
Web Services Tutorial
  • Learn Web Services NuSOAP
  • Learn Web Services WSDL
  • Learn Web Services WSDL Array
  • Learn Web Services .NET Grid
  • Learn Web Services WDDX
Package Post
  • Joomla Intro
  • Joomla Component
  • Joomla Module
  • Joomla MVC
  • Joomla MVC Backend
  • PostNuke Intro
  • Zend Framework Intro
  • Zend Framework Action
  • Zend Framework Database
  • Zend Framework Registry
  • Zend Framework Config
  • Zend Framework Login
  • Zend Framework Session
  • PHP Array Tips
  • PHP File Tips
  • PHP Email
  • PHP Ms Excel
  • PHP Pattern
  • PHP SMS
  • Flash Database
  • PHP Multitier
  • jQuery Introduction
  • jQuery Selectors
  • Portable Web Server
  • Web Mobile Intro
  • Drupal Installation
  • Drupal Configuration