Hey gang,
Could I get someone to explain what this line is doing. I'm learning php fast, but still have a ways to go! 😉
" $key => $value "
Here's the context (from this tread, c. 2003):
foreach ($thisArray as $key => $value) {
if (is_null($value) || $value == "") {
unset ($thisArray[$key]);
}
}
The part I'm having trouble understanding is the " => " I don't see it listed as an operator in the php list on devguru.com (my hero, btw). Is this just a way of drilling-down into an associative array?
Also, why is it necessary to act on "$thisArray" as "$key"? Why not just look directly at $thisArray?
Thanks in advance for any help!
Newbie 😉