Jul
22
2009
0

Revisited: foreachif()

A while ago I blogged about my desire for a foreachif() construct in PHP. A recent comment from a reader made me re-think the concept and consider ways in which it could be implemented elegantly, without the need for changes to PHP’s syntax.

(more…)

Written by Erin in: IT, PHP, Programming | Tags: , ,
Dec
12
2008
6

PHP wish list – part 2: reverse combined operators

It’s time for part 2 of my PHP wish list! In this instalment I’ll detail another feature that I would love to see in PHP: reverse combined operators.

If you missed part 1 (you probably did), you can read it here.

“What the hell is a reverse combined operator?” I hear you scream. Well, technically they probably don’t exist yet, so I’m sure a better name could be found, but bear with me and I’ll try to explain…

(more…)

Written by Erin in: PHP, Programming | Tags: , , ,
Dec
04
2008
16

PHP wish list – part 1: foreachif()

PHP is a great programming language. Honestly, I’ve worked with it almost every day for 5 or so years and I still love it. I haven’t even considered trying Python, promise! *looks guiltily at Andi and Zeev*

Sometimes though, I do wish for something more. Never enough to switch teams (sorry Python), but there are a few points I keep coming back to. This, in fact, is at the present moment the sole reason for this blog’s existence – I simply don’t have anywhere else to voice my frustration.

So, without further ado I give you part 1 of my PHP wish list: the foreachif() construct!

(more…)

Written by Erin in: PHP, Programming | Tags: , , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com