PHP WDDX: Understanding Simple Data TypeTag: wddx, distributed data, data type, elements, simple data type Category: PHP Applicationpost: 29 Apr 2008 read: 247 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:
boolean The boolean element represents a Boolean value. The value of this element: true or false. This is case sensitive, so, use lowercase.
number The number element contain the serialized value for the number 12345, -12345, 12.345, -12.345, and 123456789012345:
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
string The string element contains arbitrary length string that must not contain embedded NULLs.
|
| | Give Your Opinion | Recommend |
|

