News Feed
Jobs Feed
Sections




News Archive
ProDevTips Blog:
Fluent Arrays and Strings in PHP - Adding JSON and more
July 17, 2008 @ 09:32:26

Henrik continues his look at fluent arrays and strings in PHP with this second part of his series, adding JSON functionality into the mix.

Recently I've had the need to extend the interface further, among other things with JSON support. I've used code published by Nicolas Crovatti to do this.

His example shows how the script works to plot out some points for a table of stats. He follows this with an in-depth look at the different methods making up that fluent call (apply2Field, fill_ret, sum and plot). These make the array that can then be passed off to PHP, using json_encode to make an easy-consumable JSON message out of the results.

0 comments voice your opinion now!
json fluent array string php5 tutorial jsonencode


blog comments powered by Disqus

Similar Posts

Cody Taylor's Blog: Checking Bits With PHP

NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP

Zend Developer Zone: PHP|tek 2009 Conference: Day 1

PHPBuilder.com: The ABC's of PHP II - What do I need to make it work?

PHPMaster.com: Error Logging with MongoDB and Analog


Community Events











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


code introduction podcast phpunit tool object functional testing development example zendframework2 opinion community language release conference framework series interview unittest

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