Archive

Working with trees When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array functions.

Working with trees When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array & string functions.

This is a Javascript version of the PHP function: max.

This is a Javascript version of the PHP function: min.

Recently I've been experimenting with Virtual machines for my development environment. The goal was to create a Virtual Machine that resembles our main production server, and have that Virtual Machine mount my workspace project directory as it's DocumenRoot. This way, my code could be served & tested after every save in my IDE. So no more building / committing delays. And all I could mess up was a Virtual Machine. I didn't know what software to start with and just tried the bunch. Here's my ever so subjective comparison 'chart' on Virtual Machine software.

This is a Javascript version of the PHP function: strncasecmp.

This is a Javascript version of the PHP function: acos.

This is a Javascript version of the PHP function: acosh.

This is a Javascript version of the PHP function: asin.

This is a Javascript version of the PHP function: asinh.

This is a Javascript version of the PHP function: atan.

This is a Javascript version of the PHP function: atanh.

This is a Javascript version of the PHP function: ceil.

This is a Javascript version of the PHP function: cos.

This is a Javascript version of the PHP function: cosh.

This is a Javascript version of the PHP function: exp.

This is a Javascript version of the PHP function: floor.

This is a Javascript version of the PHP function: log.

This is a Javascript version of the PHP function: pi.

This is a Javascript version of the PHP function: pow.

This is a Javascript version of the PHP function: sin.

This is a Javascript version of the PHP function: sinh.

This is a Javascript version of the PHP function: sqrt.

This is a Javascript version of the PHP function: tan.

This is a Javascript version of the PHP function: tanh.

In another article I've told you about how I would like to see one rule removed from the PEAR Coding Standards. This rule would allow developers a bit more flexibility, while staying true to the convention.