Can anyone tell me why this code is not working? It outouts 8 colons, one for each element but no data which means the [$i] is NOT referencing the array element
$geo_addr = array("number"=>1600, "zip"=>34208, "suffix"=>'', "prefix"=>'', "type"=>'parkway', "street"=>'amphitheatre', "state"=>CA, "city"=>'mountain view');
$count = count($geo_addr);
for($i=0; $i<$count; $i++)
{
echo $geo_addr[$i];
$geo_addr[$i] = str_replace(" ", "+", $geo_addr[$i]);
echo ": " .$geo_addr[$i] ."<br>";
}
extract($geo_addr);
The output should show that $geo_addr gets changed from "mountain view" to "mountain+view".
Thanks!
Pete