Folks,
If I have a numeric array similar to the following:
$tmpArray[0]="alpha";
$tmpArray[1]="beta";
$tmpArray[2]="charlie";
I can break it down like so
list($first,$second,$third)=$tmpArray;
This would mean $first="alpha", $second="beta" and $third="charlie"
However, when I have an associate array like so
$tmpArray["one"]="alpha";
$tmpArray["two"]="beta";
$tmpArray["three"]="charlie";
and do
list($first,$second,$third)=$tmpArray;
Then $first, $second, $third do not have values - Can someone give me an
environmentally friendly workaround to make this work? I can think of
explodes/implodes and a number of other methods, but I had believed I could
reference the first element in an associate array with a zero... and the
next with a numeric one, but that does not seem to be the case...
all help, via the newsgroup would be much appreciated, thanx
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?