News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Processing JSON in PHP
April 04, 2014 @ 10:40:39

PHPBuilder.com has posted a new tutorial today showing you how to work with JSON in PHP including serialization and database interaction.

This article explains how to use the JavaScript Object Notation (JSON) extension in PHP, going step by step through a series of essential operations. JSON is an object string notation, it is defined as a subset of JavaScript's syntax and its general-purpose is to interchange data format. As you probably know, JSON was first made to be used with JavaScript for accessing remote data, but now it is used by many other languages because JSON data is platform independent data format. JSON can be used natively in JavaScript, but you can also use it in a server-client application logic.

They start with an introduction to the JSON structure and how to both create and encode data using PHP's own json_encode and json_decode. The examples start out using arrays for the data but then move into something slightly more complex - objects. The article talks about JsonSerializable and show how to automatically hook the data into a table and store the content based on the column name/property name match.

0 comments voice your opinion now!
process json encode decode tutorial example

Link: http://www.phpbuilder.com/articles/application-architecture/object-oriented/processing-json-in-php.html

blog comments powered by Disqus

Similar Posts

DevShed: Completing a Query Processor in PHP

Oracle Coherence Blog: Getting Started With The Coherence Memcached Adaptor (and PHP)

PHPMaster.com: Multi-Language Support in CodeIgniter

SitePoint PHP Blog: How to Roll Your Own JavaScript Compressor with PHP and the Closure Compiler

DevShed: Using Recursive Methods in Object-based PHP Applications (Part 2)


Community Events





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


symfony interview deployment series zendserver bugfix release podcast list development framework threedevsandamaybe conference api laravel code tips introduction language community

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