Sold Price
Sold
on Market
‡ Median Prices January 2025, Bright MLS. Bucks, Delaware & Montgomery County Homes Sold by Municipalies (rounded to the nearest $1,000).
$v){$total = $k; break;} break; case 'range': sort($array); $sml = $array[0]; rsort($array); $lrg = $array[0]; $total = $lrg - $sml; break; } return $total; } } $collected['template'] = array('muni' => "", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0); ini_set("auto_detect_line_endings", true); $fp = fopen('/Library/WebServer/csv/bdm-sold-january-2025.csv','r'); while(($entry = fgetcsv($fp,8192,',')) !== FALSE) { // if(($entry[33] < "2024-06-01") || ($entry[33] > "2024-07-31")) {continue;} $ma = explode(" - ", $entry[2]); $entry[0] = $ma[0]; // parse MLS Area Full Name //if($entry[NEWCON] == "Yes") { // (continue; //} // $entry[MUNI] = preg_replace('~ \([0-9][0-9][0-9][0-9][0-9]\)~','',$entry[MUNI]); // (int) $price = str_replace(",","",str_replace("$","",$entry[PRICE])); // // if(array_key_exists($entry[0],$collected)) { $collected[$entry[2]]['thecount'] += 1; $collected[$entry[2]]['prices'] .= ($entry[8] . ","); $collected[$entry[2]]['dom'] .= ($entry[18] . ","); if($price < $collected[$entry[2]]['low']) { $collected[$entry[2]]['low'] = $price; } if($price > $collected[$entry[2]]['high']) { $collected[$entry[2]]['high'] = $price; } // // // } } // $status = array_column($collected,0); // array_multisort($collected,SORT_DESC,$status,$collected[]); ?>
‡ Median Prices January 2025, Bright MLS. Bucks, Delaware & Montgomery County Homes Sold by Municipalies (rounded to the nearest $1,000).
