arrays

Sorting Perl Lists And Removing Duplicates On Linux Or Unix

Linux Today  Thu, 09/04/2008 - 23:32

The Linux and Unix Menagerie: "Today, we're going to look a Perl list sorting. In this context, you can actually consider our lists as arrays if you prefer.

I'm going to keep calling them lists because, in the end, it will most closely approximate what we will want to manipulate; a fixed list of numbers."


 

David Otton's Blog: Neat PHP tricks: Casting Arrays to Objects

PHPDeveloper.org  Thu, 08/14/2008 - 13:38

David Otton has a handy little tip if you're looking for a cleaner way to deal with array data - casting it to an object.


 

WiFi Software Arrives on Linux Desktops

Linux Today  Wed, 08/06/2008 - 07:00

Desktop Linux: "A vendor of Linux-based WiFi arrays is finally releasing a version of its WiFi Monitor utility for Linux desktops.

The open source, widget-like Xirrus WiFi Monitor for Linux enables users to monitor, secure, and troubleshoot WiFi networks, says Xirrus."


 

ProDevTips Blog: Fluent Arrays and Strings in PHP - Adding JSON ...

PHPDeveloper.org  Thu, 07/17/2008 - 09:32

Henrik continues his look at fluent arrays and strings in PHP with this second part of his series, adding JSON functionality into the mix.


 

Harry Roberts' Blog: Manipulating PHP arrays with SQL

PHPDeveloper.org  Thu, 05/22/2008 - 14:39

Harry Roberts has a quick post to his blog today showing a method he's come up with to handle PHP arrays from inside of SQL statements (a port of the JsonSQL library to PHP).


 

Michael Kimsal's Blog: Grails for PHP Developers Part 5

PHPDeveloper.org  Tue, 02/19/2008 - 12:02

Michael Kimsal points out the posting of the latest part of his "Grails for PHP developers" series to his blog site - Part Five of the series.


 

Python is still awesome - Wolfram Kriesing

Planet PHP  Thu, 02/14/2008 - 10:47

Just because I just came across it while optimizing some old code, I have to mention this.
I have the following list of dictionaries (array or hash-arrays in other words) and I want to sum up the values of one of the items of the dictionary.

In python I do this

d = [{'value':1, 'title':'one'}, {'value':2}, {'value':3}, {'value':4, 'title':'four'}, ] s = sum([i['value'] for i in d])

In PHP I would have done this (I guess)