News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Make Me Pulse Blog:
PHP6, Unicode and TextIterator features
0 comments :: posted Friday March 14, 2008 @ 09:32:34
voice your opinion now!

On the Make Me Pulse blog, there's a look at PHP6's support of Unicode in the SPL (Standard PHP Library) TextIterator handler.

I've just install the last version of PHP6 dev and I've decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it's just my discoveries test on this features.

He steps through the process he followed - enabling Unicode support, testing various output methods (including just an echo and using the TextIterator) as well as some of the manipulation methods (next/first/current) that can be used to get certain characters out of a string.

tagged with: php6 unicode textiterator spl standard php library enable


Paul Jones' Blog:
Line Length, Volume, and Density
0 comments :: posted Tuesday March 11, 2008 @ 09:33:00
voice your opinion now!

In a new blog post, Paul Jones looks at three aspects of coding style - line length, volume and density - and how different people have different assumptions as to what's "right".

When it comes to coding style, there are are various ideas about how you should write the individual lines of code. The usual argument is about "how long should a line of code be"? There's more to it than that, though. Developers should also take into account line volume ("number of lines") and line density ("instructions per line").

He mentions the PEAR style guide when talking about line length, reading code like and sentence in line volume/density and how the "shorter is better" concept can be pushed to its extreme limits taking code into the unreadable zone.

tagged with: coding standard style volume length density

Raphael Stolt's Blog:
Zend Framework coding standards on one page
0 comments :: posted Tuesday February 12, 2008 @ 07:59:00
voice your opinion now!

Raphael Stolt, in working on his component for the Zend Framework (based on the PHP_CodeSniffer PEAR package), pulled together all of the information Zend provides about their coding standards into one place.

Before jumping into the development of a Zend Framework coding standard for the PHP_CodeSniffer Pear package, I spent some time revisiting and compiling the available Zend Framework coding standards into a handy one-paged Pdf document.

You can download the file here or, if you want something a bit more "spread out", check out the coding standards on the Zend Framework website.

tagged with: zendframework coding standard pdf single resource

Make Me Pulse Blog:
Tips RecursiveArrayIterator on mulitdimensional Array
0 comments :: posted Monday February 11, 2008 @ 13:07:00
voice your opinion now!

On the Make Me Pulse blog, Antoine Ughetto shares a method he came up with to recurse through an array using the SPL method - the RecursiveArrayIterator method.

When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the SPL library of PHP.

A code example is included, parsing through a recursive array to output each of the key/value pairs it contains (and using only about five or six lines of code to do it).

tagged with: spl library standard recursiveiteratoriterator multidimensional array


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

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