Glenn and Dan, thanks! I think those are the mental tools I needed. Off to code!
Leam
___
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
On Tue, Aug 25, 2009 at 03:27:51PM -0400, Hall, Leam wrote:
>
> Bug ID: 1234
> Affected Machines:
> somehost1
> somehost2.example.com
> somehostwehavenotseeninyears.example.com
>
> Bug ID: 3456
> Affected Machines:
> somehost1
> somehostwehanvenotseeninyears.example.com
All in pseudo
Arrays are a powerful tool.
Once you get the hang of it, you can do almost anything.
Notice that some of them have named keys.
Anyway, I remember when I first started using arrays, especially with
named keys, and the world of possibilities
that they opened up. So I thought I would share this
On Tue, Aug 25, 2009 at 10:40 PM, Michael Hernandez wrote:
> On Tue, 2009-08-25 at 15:27 -0400, Hall, Leam wrote:
> > Okay, here's one of the places I don't really get and can use some
> > help on. On my text processing script I'm going to slurp up host
> > names. They come in as the first, count
On Tue, 2009-08-25 at 15:27 -0400, Hall, Leam wrote:
> Okay, here's one of the places I don't really get and can use some
> help on. On my text processing script I'm going to slurp up host
> names. They come in as the first, counting from 0, element. I can
> explode and create the array, which giv
Okay, here's one of the places I don't really get and can use some help on. On
my text processing script I'm going to slurp up host names. They come in as the
first, counting from 0, element. I can explode and create the array, which
gives me a string:
$hostname[1] = somehost.example.com
I ca