View Single Post
Old 02-12-2008, 03:28 PM   #3 (permalink)
Capo64
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the rough
you can use it in a statement like this:

Code:
foreach ($myArray as $key=>$val)
if $myArray is an associative array where:

$myArray['name'] == "Capo",
$myArray['location'] == "New Jersey",

it would go through the loop twice. in the first loop, $key == "name", $val == "Capo"; in the second loop $key == "location", $val == "New Jersey".


It might just be a substitute for -> but don't quote me on that.
Capo64 is offline   Reply With Quote