News Feed
Jobs Feed
Sections




News Archive
Phil Sturgeon's Blog:
PHP Format abstraction with a simple class
February 14, 2011 @ 12:15:13

Phil Sturgeon has posted about a utility he's released that can help convert data from one state to another such as arrays to JSON and XML to CSV - php-format.

Convert between Array, Object, JSON, XML, CSV and Serialized data and back again easily. I'll add a few more types like YAML when I can be arsed to work out PECL for MAMP.

There's a code snippet in his post showing the conversion of an array to JSON then to XML then back to an array. The code is pretty simple to follow with "to" and "from" methods for each format making it simple to extend for your own uses.

0 comments voice your opinion now!
convert data json xml csv serialize


blog comments powered by Disqus

Similar Posts

Site News: Popular Posts for the Week of 07.20.2012

Site News: Popular Posts for the Week of 04.22.2011

David Stockton's Blog: Zend JSON - An Introduction

Site News: Blast from the Past - One Year Ago in PHP

DevShed: Working with MySQL and Sessions to Serialize Objects in PHP (Part 3)


Community Events











Don't see your event here?
Let us know!


unittest release community functional testing zendframework2 introduction composer development api series interview code example phpunit language opinion framework database podcast

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework