News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Mark Brady's Blog:
Closures in PHP 5.3
October 01, 2008 @ 08:47:50

Mark Brady has a recent post he's worked up that looks at a feature in the upcoming PHP 5.3 version - closures.

According to object-oriented programming expert Martin Fowler, closures are defined as a block of code that can be passed to a function. [...] PHP's upcoming syntax for closures is shaping up to be comparable to the C# 2.0 implementation.

He includes two code examples to compare the two language's methods - one for C# and the other for PHP - that divides the input by a denominator and returns a true or false depending on the result. For more information on closures, see this proposal on the PHP.net wiki.

0 comments voice your opinion now!
closures php5 example c# compare code



Similar Posts

Think-PHP Blog: Detect and fix security vulnerabilities on server side within seconds

SitePoint PHP Blog: The Joy of Regular Expressions [1]

JSLabs Blog: How to use the facebook API

DevShed: Intercepting Customized Exceptions in PHP 5

Zend Developer Zone: Zend Core update for PHP 5.2.3


Community Events









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


cakephp conference zend job package PEAR PHP5 developer framework database releases release mysql ajax security application example zendframework book code

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