I have this PHP code here:
$info = array();
if($this->build) {
$info['price_type'] = 'build';
} else if($this->zip) {
$info['is_co'] = r_check_is_co_zip($this->zip);
$info['idS'] = r_find_ids_near($this->zip);
etc etc....
}
$f = fopen(CORE_ROOT . '/../pc/debuging.txt', 'a');
fwrite($f, "***ZIPCode DEBUG***" . "\r\n");
fwrite($f, "*date/time: " . date("F j, Y, g:i a") . "*" . "\r\n");
foreach($info as $q) {
fwrite($f, $q . "\r\n");
}
fwrite($f, "***************************" . "\r\n");
fclose($f);
When i try to loop through the array for $info i never get anything but "Array". What could i be doing incorrectly?
foreach($info as $name=>$q) { fwrite($f, $name.'='.var_export($q, true) . "\r\n"); }
– VolkerK Sep 11 '12 at 13:38