-
October 28th, 2007
Fluent: PHP Data Types as Fluent Objects
Introducing Fluent, a set of PHP 5 classes that make writing code happier. Fluent enables you to deal with data types as objects in the fluent api style, like you can in most other modern programming languages.
// JavaScript "Hello There".toUpperCase()->split(' '); // C# "Hello There".ToUpper().Split(new Char[] {' '}); // Ruby "Hello There".upcase.split(' ') // Python "Hello There".upper().split() // PHP explode(' ', strtoupper('Hello There')); // PHP using Fluent S('Hello There')->toupper()->explode(' ');