Over a million developers have joined DZone.

Ninging It

·
I love http://www.ning.com/ - and I fell in love with chaining whole bunches of objects together.



class Foo {
    function transform() {
         //Some actual code
         return $this;
    }

    function transform2() {
         //Some actual code
         return $this;
    }

}

$f = new Foo();
$f->transform()->transform2()->transform();


Concise!
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}